Add a utility function which returns true if the given value is a constant false value.
This is necessary to port one of the compare simplifications in TargetLowering::SimplifySetCC.
Paths
| Differential D91754
[GlobalISel] Add isConstFalseVal helper to Utils ClosedPublic Authored by paquette on Nov 18 2020, 4:31 PM.
Details Summary Add a utility function which returns true if the given value is a constant false value. This is necessary to port one of the compare simplifications in TargetLowering::SimplifySetCC.
Diff Detail
Event Timelinepaquette added a parent revision: D91753: [GlobalISel] Add an isExtendedTrueVal helper..Nov 18 2020, 4:31 PM paquette added a child revision: D91755: [GlobalISel] Combine icmp eq/ne (ext (icmp cc, x, y)), true/false).Nov 18 2020, 4:48 PM This revision is now accepted and ready to land.Nov 18 2020, 11:15 PM Closed by commit rG704b2e162c53: [GlobalISel] Add isConstFalseVal helper to Utils (authored by paquette). · Explain WhySep 28 2022, 3:44 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 463691 llvm/include/llvm/CodeGen/GlobalISel/Utils.h
llvm/lib/CodeGen/GlobalISel/Utils.cpp
llvm/unittests/CodeGen/GlobalISel/GISelUtilsTest.cpp
|