[PATCH] D121002: [DAG] Don't convert undef to 0 when creating buildvector
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 4 08:46:54 PST 2022
dmgreen created this revision.
dmgreen added reviewers: RKSimon, craig.topper, nemanjai, spatel.
Herald added subscribers: ecnelises, hiraditya.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.
When inserting undef into buildvectors created from shuffles of buildvectors, we convert elements to the largest needed type. This had the effect of converting undef into 0, which isn't needed as the buildvector implicitly truncates and trunc(zext(undef)) == undef.
https://reviews.llvm.org/D121002
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/arm64-vshuffle.ll
llvm/test/CodeGen/PowerPC/vec-itofp.ll
llvm/test/CodeGen/PowerPC/vec_conv_i16_to_fp64_elts.ll
llvm/test/CodeGen/PowerPC/vec_conv_i8_to_fp32_elts.ll
llvm/test/CodeGen/PowerPC/vec_conv_i8_to_fp64_elts.ll
llvm/test/CodeGen/Thumb2/mve-vst3.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121002.413026.patch
Type: text/x-patch
Size: 22783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220304/64bbaebf/attachment.bin>
More information about the llvm-commits
mailing list