Revise r131553. Just use the type of the input node and forgo the bitcast. rdar://9449159.

llvm-svn: 131555
This commit is contained in:
Evan Cheng 2011-05-18 18:59:17 +00:00
parent 80632c91b0
commit 522fbfea3b
1 changed files with 3 additions and 4 deletions

View File

@ -2693,13 +2693,12 @@ SDValue ARMTargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
}
if (True.getNode() && False.getNode()) {
EVT VT = Cond.getValueType();
EVT VT = Op.getValueType();
SDValue ARMcc = Cond.getOperand(2);
SDValue CCR = Cond.getOperand(3);
SDValue Cmp = duplicateCmp(Cond.getOperand(4), DAG);
return DAG.getNode(ISD::BITCAST, dl, Op.getValueType(),
DAG.getNode(ARMISD::CMOV, dl, VT, True, False,
ARMcc, CCR, Cmp));
assert(True.getValueType() == VT);
return DAG.getNode(ARMISD::CMOV, dl, VT, True, False, ARMcc, CCR, Cmp);
}
}
}