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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2012-01-21 08:49:33 +00:00
parent 7423db2dcf
commit d9ec725db4

View File

@ -5973,10 +5973,10 @@ LowerVECTOR_SHUFFLE_256(ShuffleVectorSDNode *SVOp, SelectionDAG &DAG) {
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();