[llvm-commits] [llvm] r148632 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Craig Topper
craig.topper at gmail.com
Sat Jan 21 00:49:33 PST 2012
Author: ctopper
Date: Sat Jan 21 02:49:33 2012
New Revision: 148632
URL: http://llvm.org/viewvc/llvm-project?rev=148632&view=rev
Log:
Fix PR11819 introduced by r148537. I'd commit the test case, but the generated code is terrible as it gets fully scalarized. Expect a future commit to fix that.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=148632&r1=148631&r2=148632&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Jan 21 02:49:33 2012
@@ -5973,10 +5973,10 @@
if (MinRange[l][Input] == (int)NumElems && MaxRange[l][Input] < 0)
continue;
- if (MinRange[l][Input] >= 0 && MinRange[l][Input] < (int)NumLaneElems)
+ if (MinRange[l][Input] >= 0 && MaxRange[l][Input] < (int)NumLaneElems)
ExtractIdx[l][Input] = 0;
else if (MinRange[l][Input] >= (int)NumLaneElems &&
- MinRange[l][Input] < (int)NumElems)
+ MaxRange[l][Input] < (int)NumElems)
ExtractIdx[l][Input] = NumLaneElems;
else
return SDValue();
More information about the llvm-commits
mailing list