summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-08-16 23:37:17 +0000
committerBob Wilson <bob.wilson@apple.com>2010-08-16 23:37:17 +0000
commitca5e47d3f84dcf3dfbc6706bf1041e7029f3ce0a (patch)
treed416bc84464e6b5f7b29f4a8d8e12c12d1071e63
parentfecdea0bf77599038eb368db3bc6a38a14900308 (diff)
downloadllvm-ca5e47d3f84dcf3dfbc6706bf1041e7029f3ce0a.tar.gz
llvm-ca5e47d3f84dcf3dfbc6706bf1041e7029f3ce0a.tar.bz2
llvm-ca5e47d3f84dcf3dfbc6706bf1041e7029f3ce0a.tar.xz
Ignore undef shuffle indices when checking for a VTRN shuffle. Radar 8290937.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111208 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index 5a03a07dcc..b05c5dd259 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -3229,6 +3229,7 @@ static bool isVTRN_v_undef_Mask(const SmallVectorImpl<int> &M, EVT VT,
unsigned NumElts = VT.getVectorNumElements();
WhichResult = (M[0] == 0 ? 0 : 1);
for (unsigned i = 0; i < NumElts; i += 2) {
+ if (M[i] < 0) continue;
if ((unsigned) M[i] != i + WhichResult ||
(unsigned) M[i+1] != i + WhichResult)
return false;