This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Make m_Not work for xor -1, X
ClosedPublic

Authored by craig.topper on May 18 2017, 11:51 AM.

Details

Summary

Currently m_Not only works the canonical xor X, -1 form that InstCombine produces. InstSimplify can't rely on this canonicalization.

Diff Detail

Event Timeline

craig.topper created this revision.May 18 2017, 11:51 AM
spatel accepted this revision.May 18 2017, 1:02 PM

LGTM.

This revision is now accepted and ready to land.May 18 2017, 1:02 PM
This revision was automatically updated to reflect the committed changes.