[InstSimplify] insertelement V, undef, ? --> V
authorSanjay Patel <spatel@rotateright.com>
Thu, 23 May 2019 21:49:47 +0000 (21:49 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 23 May 2019 21:49:47 +0000 (21:49 +0000)
commite60cb7d1be4aac850c69486cf69f0c5fe250e3af
tree907607be2f8276beb6a77c9e213d71e75e11793e
parent5bc40d9b188bb43e2aafafe58d8d169cc7c9b4f1
[InstSimplify] insertelement V, undef, ? --> V

This was part of InstCombine, but it's better placed in
InstSimplify. InstCombine also had an unreachable but weaker
fold for insertelement with undef index, so that is deleted.

llvm-svn: 361559
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstCombine/vec_insertelt.ll [deleted file]
llvm/test/Transforms/InstSimplify/insertelement.ll