Add a helper equivalent to TargetLowering::isExtendedTrueVal and test it.
This is necessary to implement one of the simplifications in TargetLowering::SimplifySetCC.
Paths
| Differential D91753
[GlobalISel] Add an isExtendedTrueVal helper. AcceptedPublic Authored by paquette on Nov 18 2020, 4:29 PM.
Details
Diff Detail Event Timelinepaquette added a child revision: D91754: [GlobalISel] Add isConstFalseVal helper to Utils.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
arsenm added inline comments. This revision now requires changes to proceed.Mar 30 2021, 3:59 PM Comment Actions The original code was confusing. Rewrote this to use getICmpTrueVal + APInt. I think this simplifies the behaviour for s1 quite a bit. This revision is now accepted and ready to land.Sep 21 2022, 5:27 PM
Revision Contents
Diff 335898 llvm/include/llvm/CodeGen/GlobalISel/Utils.h
llvm/lib/CodeGen/GlobalISel/Utils.cpp
llvm/unittests/CodeGen/GlobalISel/GISelUtilsTest.cpp
|
Should pass LLT by value