forked from OSchip/llvm-project
Move getOpcode() call into if statement. NFCI.
Avoids a cppcheck "Local variable name shadows outer variable" warning. llvm-svn: 359991
This commit is contained in:
parent
1c34db85e5
commit
5170c0e5fe
|
@ -20630,7 +20630,6 @@ SDValue X86TargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
|
||||||
CC = Cond.getOperand(0);
|
CC = Cond.getOperand(0);
|
||||||
|
|
||||||
SDValue Cmp = Cond.getOperand(1);
|
SDValue Cmp = Cond.getOperand(1);
|
||||||
unsigned Opc = Cmp.getOpcode();
|
|
||||||
MVT VT = Op.getSimpleValueType();
|
MVT VT = Op.getSimpleValueType();
|
||||||
|
|
||||||
bool IllegalFPCMov = false;
|
bool IllegalFPCMov = false;
|
||||||
|
@ -20639,7 +20638,7 @@ SDValue X86TargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
|
||||||
IllegalFPCMov = !hasFPCMov(cast<ConstantSDNode>(CC)->getSExtValue());
|
IllegalFPCMov = !hasFPCMov(cast<ConstantSDNode>(CC)->getSExtValue());
|
||||||
|
|
||||||
if ((isX86LogicalCmp(Cmp) && !IllegalFPCMov) ||
|
if ((isX86LogicalCmp(Cmp) && !IllegalFPCMov) ||
|
||||||
Opc == X86ISD::BT) { // FIXME
|
Cmp.getOpcode() == X86ISD::BT) { // FIXME
|
||||||
Cond = Cmp;
|
Cond = Cmp;
|
||||||
AddTest = false;
|
AddTest = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue