llvm.org GIT mirror llvm / 937feb0
Move getOpcode() call into if statement. NFCI. Avoids a cppcheck "Local variable name shadows outer variable" warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359991 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 1 year, 5 months ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2062920629 CC = Cond.getOperand(0);
2063020630
2063120631 SDValue Cmp = Cond.getOperand(1);
20632 unsigned Opc = Cmp.getOpcode();
2063320632 MVT VT = Op.getSimpleValueType();
2063420633
2063520634 bool IllegalFPCMov = false;
2063820637 IllegalFPCMov = !hasFPCMov(cast(CC)->getSExtValue());
2063920638
2064020639 if ((isX86LogicalCmp(Cmp) && !IllegalFPCMov) ||
20641 Opc == X86ISD::BT) { // FIXME
20640 Cmp.getOpcode() == X86ISD::BT) { // FIXME
2064220641 Cond = Cmp;
2064320642 AddTest = false;
2064420643 }