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:
Bill Wendling 2008-12-03 08:32:02 +00:00
parent c19065150b
commit 0ea25cb941

View File

@ -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