Add a convenience matcher which handles
G_XOR %not_reg, -1
And a convenience matcher which returns true if an integer constant is all ones.
I expect that this will become useful. I'd like to use it in D90774 at least.
Paths
| Differential D91459
[GlobalISel] Add convenience matchers for nots and all-ones constants ClosedPublic Authored by paquette on Nov 13 2020, 1:40 PM.
Details Summary Add a convenience matcher which handles G_XOR %not_reg, -1 And a convenience matcher which returns true if an integer constant is all ones. I expect that this will become useful. I'd like to use it in D90774 at least.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 13 2020, 1:42 PM Closed by commit rGd6a88e7e194d: [GlobalISel] Add convenience matchers for nots and all-ones constants (authored by paquette). · Explain WhyNov 13 2020, 1:54 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 305258 llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
|