[InstSimplify] fold insertelement-of-extractelement
authorSanjay Patel <spatel@rotateright.com>
Fri, 24 May 2019 00:13:58 +0000 (00:13 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 24 May 2019 00:13:58 +0000 (00:13 +0000)
commit8869a98e82552ef698112df840575693780802a4
tree3075426e6bbc5c0db6c728947cbbd6b508568ec8
parent3e15f833819d6e18988c62e877637258e649808c
[InstSimplify] fold insertelement-of-extractelement

This was partly handled in InstCombine (only the constant
index case), so delete that and zap it more generally in
InstSimplify.

llvm-svn: 361576
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstSimplify/insertelement.ll