Revert "[InstCombine] canonicalize trunc + insert as bitcast + shuffle, part 1 (2nd...
authorSanjay Patel <spatel@rotateright.com>
Thu, 8 Dec 2022 15:47:53 +0000 (10:47 -0500)
committerSanjay Patel <spatel@rotateright.com>
Thu, 8 Dec 2022 19:16:46 +0000 (14:16 -0500)
commit05dbdb0088a3f5541d9e91c61a564d0aa4704f4f
treec3f44459fd71fe99ed04f6eca1c7c1183e964e51
parent99254f925185e18f456821e27a2272136518f9f3
Revert "[InstCombine] canonicalize trunc + insert as bitcast + shuffle, part 1 (2nd try)"

This reverts commit e71b81cab09bf33e3b08ed600418b72cc4117461.

As discussed in the planned follow-on to this patch (D138874),
this and the subsequent patches in this set can cause trouble for
the backend, and there's probably no quick fix. We may even
want to canonicalize in the opposite direction (towards insertelt).
clang/test/Headers/wasm.c
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstCombine/insert-trunc.ll
llvm/test/Transforms/InstCombine/vec_phi_extract-inseltpoison.ll
llvm/test/Transforms/InstCombine/vec_phi_extract.ll
llvm/test/Transforms/LoopVectorize/ARM/pointer_iv.ll
llvm/test/Transforms/PhaseOrdering/X86/vec-load-combine.ll