Add a matcher that checks if the given subpattern has only one non-debug use.
Also improve existing m_OneUse testcase.
Paths
| Differential D94705
[MIPatternMatch] Add m_OneNonDBGUse ClosedPublic Authored by paquette on Jan 14 2021, 12:05 PM.
Details
Summary Add a matcher that checks if the given subpattern has only one non-debug use. Also improve existing m_OneUse testcase.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 14 2021, 4:24 PM Closed by commit rGcc90d41945f6: [MIPatternMatch] Add m_OneNonDBGUse (authored by paquette). · Explain WhyJan 15 2021, 10:19 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 317013 llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
|