As title, this simple patch just fix the fixed vector type restriction.
TestPlan: check-llvm
Paths
| Differential D93083
[InstCombine] Remove scalable vector restriction in foldSelectOpOp ClosedPublic Authored by junparser on Dec 10 2020, 7:37 PM.
Details
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Dec 15 2020, 4:14 AM Closed by commit rG2ac58e21a115: [InstCombine] Remove scalable vector restriction when fold SelectInst (authored by junparser). · Explain WhyDec 15 2020, 4:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 311867 llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/select.ll
|
The test works already without this patch, so this change isn't actually tested.
(Because of TI->isCast here, I was expecting to see a cast instruction as one of the select operands)