This is an archive of the discontinued LLVM Phabricator instance.

[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

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Jun 23 2017, 11:11 PM
davide accepted this revision.Jun 23 2017, 11:17 PM
davide added a subscriber: davide.

LGTM

This revision is now accepted and ready to land.Jun 23 2017, 11:17 PM
This revision was automatically updated to reflect the committed changes.