TargetLowering::SimplifySetCC wants to swap the operands of a SETCC to canonicalize the constant to the RHS. The bug here was that it did so whether or not the RHS was already a constant, leading to an infinite loop.
rdar://111847838
Differential D155095
TargetLowering: fix an infinite DAG combine in SimplifySETCC jroelofs on Jul 12 2023, 8:53 AM. Authored by
Details TargetLowering::SimplifySetCC wants to swap the operands of a SETCC to canonicalize the constant to the RHS. The bug here was that it did so whether or not the RHS was already a constant, leading to an infinite loop. rdar://111847838
Diff Detail Event Timeline
|
Doesn't this change prevent folding constant comparisons? But maybe that's handled by the FoldSetCC above? Was that added later than this comment was written?