This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Use m_APInt instead of m_ConstantInt in ((V + N) & C1) | (V & C2) handling in order to support splat vectors.
ClosedPublic

Authored by craig.topper on May 26 2017, 10:58 AM.

Details

Summary

The tests here are have operands commuted to provide more coverage. I also commuted one of the instructions in the scalar tests so the 4 tests cover the 4 commuted variations

Diff Detail

Repository
rL LLVM

Event Timeline

spatel accepted this revision.May 26 2017, 11:10 AM

LGTM. Thanks!

This revision is now accepted and ready to land.May 26 2017, 11:10 AM
This revision was automatically updated to reflect the committed changes.