mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
fix PR8981, a crash trying to form a conditional inc with a floating point compare.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -11560,7 +11560,8 @@ static SDValue OptimizeConditonalInDecrement(SDNode *N, SelectionDAG &DAG) {
|
||||
|
||||
SDValue Cmp = SetCC.getOperand(1);
|
||||
if (Cmp.getOpcode() != X86ISD::CMP || !Cmp.hasOneUse() ||
|
||||
!X86::isZeroNode(Cmp.getOperand(1)))
|
||||
!X86::isZeroNode(Cmp.getOperand(1)) ||
|
||||
!Cmp.getOperand(0).getValueType().isInteger())
|
||||
return SDValue();
|
||||
|
||||
SDValue CmpOp0 = Cmp.getOperand(0);
|
||||
|
||||
Reference in New Issue
Block a user