This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Teach select01 helper of foldSelectIntoOp to handle vector splats
ClosedPublic

Authored by craig.topper on Aug 28 2017, 2:20 PM.

Details

Summary

We were handling some vectors in foldSelectIntoOp, but not if the operand of the bin op was any kind of vector constant. This patch fixes it to treat vector splats the same as scalars.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Aug 28 2017, 2:20 PM
spatel accepted this revision.Aug 28 2017, 2:53 PM

LGTM.

This revision is now accepted and ready to land.Aug 28 2017, 2:53 PM
davide accepted this revision.Aug 28 2017, 2:54 PM
This revision was automatically updated to reflect the committed changes.