[llvm-commits] [llvm] r111208 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Bob Wilson
bob.wilson at apple.com
Mon Aug 16 16:37:17 PDT 2010
Author: bwilson
Date: Mon Aug 16 18:37:17 2010
New Revision: 111208
URL: http://llvm.org/viewvc/llvm-project?rev=111208&view=rev
Log:
Ignore undef shuffle indices when checking for a VTRN shuffle. Radar 8290937.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=111208&r1=111207&r2=111208&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Mon Aug 16 18:37:17 2010
@@ -3229,6 +3229,7 @@
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;
More information about the llvm-commits
mailing list