diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-08-16 23:37:17 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-08-16 23:37:17 +0000 |
commit | 54984dc0510fc3baa1fec8174059cd887587a0e2 (patch) | |
tree | d416bc84464e6b5f7b29f4a8d8e12c12d1071e63 /lib/Target/ARM | |
parent | a0d3ebeba523cd7e8ddaa013feae764e6b600b82 (diff) | |
download | external_llvm-54984dc0510fc3baa1fec8174059cd887587a0e2.zip external_llvm-54984dc0510fc3baa1fec8174059cd887587a0e2.tar.gz external_llvm-54984dc0510fc3baa1fec8174059cd887587a0e2.tar.bz2 |
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
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 5a03a07..b05c5dd 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; |