m_CombineOr isn't very efficient. The code using it is also quite verbose.
This patch adds m_Shift and m_BitwiseLogic matchers to make the using code more concise and improve the match efficiency.
Paths
| Differential D34593
[IR][AssumptionCache] Add m_Shift and m_BitwiseLogic matchers to replace a couple m_CombineOr ClosedPublic Authored by craig.topper on Jun 23 2017, 11:11 PM.
Details Summary m_CombineOr isn't very efficient. The code using it is also quite verbose. This patch adds m_Shift and m_BitwiseLogic matchers to make the using code more concise and improve the match efficiency.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 23 2017, 11:17 PM Closed by commit rL306206: [IR][AssumptionCache] Add m_Shift and m_BitwiseLogic matchers to replace a… (authored by ctopper). · Explain WhyJun 23 2017, 11:28 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 103831 llvm/trunk/include/llvm/IR/Instruction.h
llvm/trunk/include/llvm/IR/PatternMatch.h
llvm/trunk/lib/Analysis/AssumptionCache.cpp
|