mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-28 06:35:49 +00:00
Fix an ARMTargetLowering::LowerSELECT bug: legalized result must have same type as input. Sorry test cases only trigger when dag combine is disabled. rdar://9449178
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d3372b85e6
commit
d48fda46f5
@ -2697,7 +2697,9 @@ SDValue ARMTargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
|
||||
SDValue ARMcc = Cond.getOperand(2);
|
||||
SDValue CCR = Cond.getOperand(3);
|
||||
SDValue Cmp = duplicateCmp(Cond.getOperand(4), DAG);
|
||||
return DAG.getNode(ARMISD::CMOV, dl, VT, True, False, ARMcc, CCR, Cmp);
|
||||
return DAG.getNode(ISD::BITCAST, dl, Op.getValueType(),
|
||||
DAG.getNode(ARMISD::CMOV, dl, VT, True, False,
|
||||
ARMcc, CCR, Cmp));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user