remove some harmful code that would turn an insertelement on an undef
authorChris Lattner <sabre@nondot.org>
Sun, 11 Oct 2009 23:02:46 +0000 (23:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 11 Oct 2009 23:02:46 +0000 (23:02 +0000)
commit2ad8cf5555b7d53cc11f34d6fac019c4028aea25
tree20ad46163d7e85a2ed57b52d0af7cef95cb01bed
parentaca471f3a5c36944eaeb475d4bc9a25a9f3bdefb
remove some harmful code that would turn an insertelement on an undef
into a shuffle even if it was used by another insertelement.  If the
visitation order of instcombine was wrong, this would turn a chain of
insertelements into a chain of shufflevectors, which was quite painful.

Since CollectShuffleElements handles these cases, the code can just
be nuked.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83810 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp