Revert "[InstCombine] canonicalize trunc + insert as bitcast + shuffle, part 2"
authorSanjay Patel <spatel@rotateright.com>
Thu, 8 Dec 2022 14:58:17 +0000 (09:58 -0500)
committerSanjay Patel <spatel@rotateright.com>
Thu, 8 Dec 2022 14:58:17 +0000 (09:58 -0500)
commit286ae63e168b5e5249bf52e2f1610057d604bab4
treedbac5f7bb55cfbe5739b678036c84a44e37af021
parentea6ed399b29c25fb685af16eb7f722fd1649b37a
Revert "[InstCombine] canonicalize trunc + insert as bitcast + shuffle, part 2"

This reverts commit dd8d0d21ce6d0665ef5d426372096aaed85b479a.
As discussed in the planned follow-on to this patch (D138874),
this and the previous patch 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).
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstCombine/insert-trunc.ll