Skip to content

Conversation

@knickish
Copy link
Contributor

@knickish knickish commented Nov 30, 2025

Remove assertions on finding callseq start and don't use multiple chains when lowering calls

@knickish knickish force-pushed the m68k_call_seq_start_fix branch from c513a96 to 5b87c12 Compare November 30, 2025 20:40
@knickish
Copy link
Contributor Author

knickish commented Dec 2, 2025

@mshockwave can you sanity check this if you have time before it gets sent to SelectionDAG review? It's really dumb, but apparently fixes the callseq start assertion. seems to pass all the x86 and m68k tests

unsigned MaxNest = 0;
SDNode *N = FindCallSeqStart(Node, NestLevel, MaxNest, TII);
assert(N && "Must find call sequence start");
if (!N)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we bail out upon failing to find callseq_start, then we might not be able to prevent other instructions from getting between callseq_start & call instruction & callseq_end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants