This is an archive of the discontinued LLVM Phabricator instance.

Add a new matcher m_ICmpWithPred
AbandonedPublic

Authored by sanjoy on Dec 16 2014, 2:01 PM.

Details

Reviewers
None
Summary

This simplifies a later change

Diff Detail

Event Timeline

sanjoy updated this revision to Diff 17361.Dec 16 2014, 2:01 PM
sanjoy retitled this revision from to Add a new matcher m_ICmpWithPred.
sanjoy updated this object.
sanjoy edited the test plan for this revision. (Show Details)
sanjoy added a subscriber: Unknown Object (MLST).
reames added a subscriber: reames.Dec 29 2014, 2:29 PM

LGTM

Refactoring some bit of code as part of the patch so that this isn't dead on submission would be a good idea. There should be lots of candidates.

include/llvm/IR/PatternMatch.h
738

Add a comment which clarifies the difference with the previous, it's not obvious.

Something along the lines of:

/ Matches an arbitrary ICmp and binds Pred
.. matcher 1
/ Matches an icmp w/ a specific predicate P
... matcher 2

sanjoy abandoned this revision.Jan 9 2015, 5:44 PM