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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D37232
[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
Event TimelineThis revision is now accepted and ready to land.Aug 28 2017, 2:53 PM Closed by commit rL311940: [InstCombine] Teach select01 helper of foldSelectIntoOp to handle vector splats (authored by ctopper). · Explain WhyAug 28 2017, 3:01 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 112977 llvm/trunk/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/trunk/test/Transforms/InstCombine/select.ll
llvm/trunk/test/Transforms/LoopVectorize/phi-cost.ll
|