Fix refacto.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2012-01-30 20:01:35 +00:00
parent baffe7a6f3
commit 630ecf0f53

View File

@ -5294,8 +5294,8 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
int MaskVec[] = { int MaskVec[] = {
Reverse1 ? 1 : 0, Reverse1 ? 1 : 0,
Reverse1 ? 0 : 1, Reverse1 ? 0 : 1,
static_cast<int>(Reverse2 ? 1-NumElems : NumElems), static_cast<int>(Reverse2 ? NumElems+1 : NumElems),
static_cast<int>(Reverse2 ? NumElems : 1+NumElems) static_cast<int>(Reverse2 ? NumElems : NumElems+1)
}; };
return DAG.getVectorShuffle(VT, dl, V[0], V[1], &MaskVec[0]); return DAG.getVectorShuffle(VT, dl, V[0], V[1], &MaskVec[0]);
} }