From: Bob Wilson Date: Mon, 16 Aug 2010 23:37:17 +0000 (+0000) Subject: Ignore undef shuffle indices when checking for a VTRN shuffle. Radar 8290937. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ca5e47d3f84dcf3dfbc6706bf1041e7029f3ce0a;p=oota-llvm.git 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 --- diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 5a03a07dcca..b05c5dd2597 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 &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;