Fix a typo in the widening of vectors in PromoteIntRes. Patch by Shemer Anat.

llvm-svn: 147272
This commit is contained in:
Nadav Rotem 2011-12-25 20:01:38 +00:00
parent 771c4a1775
commit c1faeac410
1 changed files with 2 additions and 2 deletions

View File

@ -252,9 +252,9 @@ SDValue DAGTypeLegalizer::PromoteIntRes_BITCAST(SDNode *N) {
return DAG.getNode(ISD::BITCAST, dl, NOutVT, InOp);
}
case TargetLowering::TypeWidenVector:
if (OutVT.bitsEq(NInVT))
if (NOutVT.bitsEq(NInVT))
// The input is widened to the same size. Convert to the widened value.
return DAG.getNode(ISD::BITCAST, dl, OutVT, GetWidenedVector(InOp));
return DAG.getNode(ISD::BITCAST, dl, NOutVT, GetWidenedVector(InOp));
}
return DAG.getNode(ISD::ANY_EXTEND, dl, NOutVT,