Similar to the specific matchers for constants.
The intention here is to make it easier to write combines which check if a specific register is used more than once.
e.g. matching patterns like:
(X + Y) == Y
Paths
| Differential D135378
[GlobalISel] Add a m_SpecificReg matcher ClosedPublic Authored by paquette on Oct 6 2022, 10:56 AM.
Details
Summary Similar to the specific matchers for constants. The intention here is to make it easier to write combines which check if a specific register is used more than once. e.g. matching patterns like: (X + Y) == Y
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 6 2022, 10:58 AM paquette added a child revision: D135380: [GlobalISel] Combine (X op Y) == X --> Y == 0.Oct 6 2022, 11:13 AM This revision was landed with ongoing or failed builds.Oct 6 2022, 11:35 AM Closed by commit rG5c63b24ec8fd: [GlobalISel] Add a m_SpecificReg matcher (authored by paquette). · Explain Why This revision was automatically updated to reflect the committed changes. paquette removed a child revision: D135380: [GlobalISel] Combine (X op Y) == X --> Y == 0.Oct 6 2022, 5:24 PM
Revision Contents
Diff 465814 llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
|