summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitc350e7a509f78c497de52e9d1e122b3de5e7ffd4 (patch)
tree1c52c1e5d16067869c0fa1e26a512eaea83ad95a /llvm
parentc3e9df3cc0312dba3e952c53f1fb667349880aaa (diff)
downloadbcm5719-llvm-c350e7a509f78c497de52e9d1e122b3de5e7ffd4.tar.gz
bcm5719-llvm-c350e7a509f78c497de52e9d1e122b3de5e7ffd4.zip
Ignore undef shuffle indices when checking for a VTRN shuffle. Radar 8290937.
llvm-svn: 111208
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 5a03a07dcca..b05c5dd2597 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud