This is an archive of the discontinued LLVM Phabricator instance.

Enable (sext x) == C --> x == (trunc C) combine
ClosedPublic

Authored by arsenm on Dec 1 2014, 11:59 AM.

Details

Reviewers
arsenm
Summary

Extend the existing code which handles this for zext. This makes this more useful for targets with ZeroOrNegativeOne BooleanContent and obsoletes a custom combine SI uses for i1 setcc (sext(i1), 0, setne) since the constant will now be shrunk to i1.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 16779.Dec 1 2014, 11:59 AM
arsenm retitled this revision from to Enable (sext x) == C --> x == (trunc C) combine.
arsenm updated this object.
arsenm edited the test plan for this revision. (Show Details)
arsenm added a subscriber: Unknown Object (MLST).
arsenm accepted this revision.Dec 21 2014, 8:49 AM
arsenm added a reviewer: arsenm.

r224691

This revision is now accepted and ready to land.Dec 21 2014, 8:49 AM
arsenm closed this revision.Dec 21 2014, 8:49 AM