From ca5e47d3f84dcf3dfbc6706bf1041e7029f3ce0a Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Mon, 16 Aug 2010 23:37:17 +0000 Subject: [PATCH] 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 --- lib/Target/ARM/ARMISelLowering.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.34.1