mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
CC should only be a ConstantSDNode at this point. Just use 'cast' instead of 'dyn_cast'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60477 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c19065150b
commit
0ea25cb941
@ -5202,15 +5202,15 @@ SDValue X86TargetLowering::LowerBRCOND(SDValue Op, SelectionDAG &DAG) {
|
||||
Cond = Cmp;
|
||||
addTest = false;
|
||||
} else {
|
||||
if (ConstantSDNode *CSDN = dyn_cast<ConstantSDNode>(CC.getNode())) {
|
||||
switch (CSDN->getZExtValue()) {
|
||||
default: break;
|
||||
case X86::COND_O:
|
||||
case X86::COND_C:
|
||||
Cond = Cond.getNode()->getOperand(1);
|
||||
addTest = false;
|
||||
break;
|
||||
}
|
||||
ConstantSDNode *CSDN = cast<ConstantSDNode>(CC.getNode());
|
||||
|
||||
switch (CSDN->getZExtValue()) {
|
||||
default: break;
|
||||
case X86::COND_O:
|
||||
case X86::COND_C:
|
||||
Cond = Cond.getNode()->getOperand(1);
|
||||
addTest = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Also, recognize the pattern generated by an FCMP_UNE. We can emit
|
||||
|
Loading…
x
Reference in New Issue
Block a user