This is an archive of the discontinued LLVM Phabricator instance.

InstCombine: Move Sub->Xor rule from SimplifyDemanded to InstCombine
ClosedPublic

Authored by MatzeB on Apr 30 2015, 2:36 PM.

Details

Summary

The rule that turns a sub to xor if the LHS is 2^n-1 and the remaining bits
are known zero, does not use the demanded bits at all: Move it to the
normal InstCombine code path.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 24772.Apr 30 2015, 2:36 PM
MatzeB retitled this revision from to InstCombine: Move Sub->Xor rule from SimplifyDemanded to InstCombine.
MatzeB updated this object.
MatzeB edited the test plan for this revision. (Show Details)
MatzeB added a reviewer: majnemer.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: Unknown Object (MLST).
majnemer accepted this revision.Apr 30 2015, 2:48 PM
majnemer edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Apr 30 2015, 2:48 PM
This revision was automatically updated to reflect the committed changes.