llvm-project/llvm/unittests/CodeGen/GlobalISel
Jessica Paquette 45b9c6b01f [GlobalISel] Add commutative matchers for compares.
This adds:

* `m_c_GICmp`
* `m_c_GFCmp`

These work the same way as the standard matchers, but will also try to commute
the LHS and RHS of a compare to get a match.

E.g.

```
m_c_GICmp(m_Pred(...), m_GAdd(...), m_GSub(...))
```

Can match either of

```
icmp cc (add x, y), (sub a, b)
icmp swapped_cc (sub a, b), (add x, y)
```

Differential Revision: https://reviews.llvm.org/D135415
2022-10-07 20:06:13 -07:00
..
CMakeLists.txt [GlobalISel] Add a store-merging optimization pass and enable for AArch64. 2021-11-15 21:10:39 -08:00
CSETest.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
ConstantFoldingTest.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
GISelAliasTest.cpp Cleanup codegen includes 2022-03-16 08:43:00 +01:00
GISelMITest.cpp
GISelMITest.h Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
GISelUtilsTest.cpp [GlobalISel] Add isConstFalseVal helper to Utils 2022-09-28 15:44:26 -07:00
KnownBitsTest.cpp [GlobalISel] Add computeNumSignBits() support for compares. 2022-10-05 00:28:08 +01:00
KnownBitsVectorTest.cpp GlobalISel: Implement computeKnownBits for overflow bool results 2022-04-11 19:43:37 -04:00
LegalizerHelperTest.cpp [GIsel] Add missing libcall for G_MUL to LegalizerHelper 2022-08-02 13:35:25 -04:00
LegalizerInfoTest.cpp [GlobalISel][Legalizer] Fix minScalarEltSameAsIf to handle p0 element types. 2022-09-13 00:01:37 +01:00
LegalizerTest.cpp [GlobalISel] Avoid creating COPY in LegalizationArtifactCombiner 2021-08-24 11:09:56 +02:00
MachineIRBuilderTest.cpp
PatternMatchTest.cpp [GlobalISel] Add commutative matchers for compares. 2022-10-07 20:06:13 -07:00