[ARM] Don't abort on variable-idx extractelt in ReconstructShuffle.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 1 Sep 2015 21:56:00 +0000 (21:56 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 1 Sep 2015 21:56:00 +0000 (21:56 +0000)
commitfc98f116be9f160797b68c5207a6ddbe713e7195
tree225b3b3e48afe3d0d20c8cbd3a72afb39caa79ef
parent3d58bd6369de960bcd144318b6209ccdea200c3f
[ARM] Don't abort on variable-idx extractelt in ReconstructShuffle.

The code introduced in r244314 assumed that EXTRACT_VECTOR_ELT only
takes constant indices, but it does accept variables.
Bail out for those: we can't use them, as the shuffles we want to
reconstruct do require constant masks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246594 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/vdup.ll