[InstCombine] remove dead code from visitExtractElement
authorSanjay Patel <spatel@rotateright.com>
Wed, 5 Dec 2018 23:09:33 +0000 (23:09 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 5 Dec 2018 23:09:33 +0000 (23:09 +0000)
commit998ececef0e28adc96edea5a288fd76c1f56187e
tree649c0df59135f03bdd641b56a4360e890394ae7f
parent4ae3b71df002a3f71ae28cb5406535714f17673a
[InstCombine] remove dead code from visitExtractElement

Extracting from a splat constant is always handled by InstSimplify.
Move the test for this from InstCombine to InstSimplify to make
sure that stays true.

llvm-svn: 348423
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/test/Transforms/InstCombine/scalarization.ll
llvm/test/Transforms/InstSimplify/extract-element.ll