We previously marked all the tests with branch funnels as -verify-machineinstrs=0.
This is an attempt to fix it.
- ICALL_BRANCH_FUNNEL has no defs. Mark it as let OutOperandList = (outs)
- After that we hit an assert:
Assertion failed: (Op.getValueType() != MVT::Other && Op.getValueType() != MVT::Glue && "Chain and glue operands should occur at end of operand list!"), function AddOperand, file /Users/francisvm/llvm/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp, line 461.
The chain operand was added at the beginning of the operand list. Move that to the end.
- After that we hit another verifier issue in the pseudo expansion where the registers used in the cmps and jmps are not added to the livein lists. Add the EFLAGS to all the new MBBs that we create.
PR39436