llvm-project
a456885e - [SelectionDAG] Allow FREEZE to be hoisted before integer SETCC. (#84241)

Commit
1 year ago
[SelectionDAG] Allow FREEZE to be hoisted before integer SETCC. (#84241) Teach canCreateUndefOrPoison that ISD::SETCC with integer operands can never create undef/poison. FP SETCC is more complicated and will be handled in a future patch. Teach isGuaranteedNotToBeUndefOrPoison that ISD::CONDCODE is not poison/undef. Its a special constant only used by setcc/select_cc like nodes. This is needed since the hoisting will only hoist if exactly one operand might be poison. setcc has 3 operand including the condition code. Recovers some regression from #84232.
Author
Parents
Loading