This patch updates ConstantVector::getSplat to use poison instead
of undef when using insertelement/shufflevector to splat.
This follows on from D93793.
Paths
| Differential D107751
[IR] Let ConstantVector::getSplat use poison instead of undef ClosedPublic Authored by david-arm on Aug 9 2021, 3:43 AM.
Details Summary This patch updates ConstantVector::getSplat to use poison instead This follows on from D93793.
Diff Detail Event TimelineComment Actions Looks ok to me but I've not been following the move away from undef, so I'll leave it for one of the reviewers who has. Comment Actions LGTM, thank you for writing this patch. This revision is now accepted and ready to land.Aug 9 2021, 7:09 AM This revision was landed with ongoing or failed builds.Aug 10 2021, 12:52 AM Closed by commit rG843941533319: [IR] Let ConstantVector::getSplat use poison instead of undef (authored by david-arm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 365142 llvm/lib/IR/Constants.cpp
llvm/test/Transforms/CodeGenPrepare/AArch64/gather-scatter-opt-inseltpoison.ll
llvm/test/Transforms/CodeGenPrepare/AArch64/gather-scatter-opt.ll
llvm/test/Transforms/InstCombine/div.ll
llvm/test/Transforms/InstCombine/fdiv.ll
llvm/test/Transforms/InstCombine/fmul.ll
llvm/test/Transforms/InstCombine/select.ll
llvm/test/Transforms/InstCombine/sub.ll
llvm/test/Transforms/InstCombine/zext-ctlz-trunc-to-ctlz-add.ll
llvm/test/Transforms/InstSimplify/ConstProp/vscale-inseltpoison.ll
llvm/test/Transforms/InstSimplify/ConstProp/vscale.ll
llvm/test/Transforms/InstSimplify/cmp-vec-fast-path.ll
llvm/test/Transforms/InstSimplify/gep.ll
llvm/test/Transforms/InstSimplify/vscale-inseltpoison.ll
llvm/test/Transforms/InstSimplify/vscale.ll
llvm/test/Transforms/LoopVectorize/AArch64/first-order-recurrence.ll
llvm/test/Transforms/LoopVectorize/AArch64/scalable-strict-fadd.ll
llvm/test/Transforms/LoopVectorize/AArch64/sve-gather-scatter.ll
llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-phi.ll
llvm/test/Transforms/LoopVectorize/scalable-first-order-recurrence.ll
llvm/test/Transforms/LoopVectorize/scalable-inductions.ll
|