[llvm] r374668 - Fix cppcheck shadow variable name warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 12 09:36:52 PDT 2019
Author: rksimon
Date: Sat Oct 12 09:36:52 2019
New Revision: 374668
URL: http://llvm.org/viewvc/llvm-project?rev=374668&view=rev
Log:
Fix cppcheck shadow variable name warnings. NFCI.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=374668&r1=374667&r2=374668&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Oct 12 09:36:52 2019
@@ -34259,17 +34259,17 @@ bool X86TargetLowering::SimplifyDemanded
if (Src.getOpcode() == X86ISD::KSHIFTR) {
if (!DemandedElts.intersects(APInt::getLowBitsSet(NumElts, ShiftAmt))) {
unsigned C1 = Src.getConstantOperandVal(1);
- unsigned Opc = X86ISD::KSHIFTL;
+ unsigned NewOpc = X86ISD::KSHIFTL;
int Diff = ShiftAmt - C1;
if (Diff < 0) {
Diff = -Diff;
- Opc = X86ISD::KSHIFTR;
+ NewOpc = X86ISD::KSHIFTR;
}
SDLoc dl(Op);
SDValue NewSA = TLO.DAG.getTargetConstant(Diff, dl, MVT::i8);
return TLO.CombineTo(
- Op, TLO.DAG.getNode(Opc, dl, VT, Src.getOperand(0), NewSA));
+ Op, TLO.DAG.getNode(NewOpc, dl, VT, Src.getOperand(0), NewSA));
}
}
@@ -34298,17 +34298,17 @@ bool X86TargetLowering::SimplifyDemanded
if (Src.getOpcode() == X86ISD::KSHIFTL) {
if (!DemandedElts.intersects(APInt::getHighBitsSet(NumElts, ShiftAmt))) {
unsigned C1 = Src.getConstantOperandVal(1);
- unsigned Opc = X86ISD::KSHIFTR;
+ unsigned NewOpc = X86ISD::KSHIFTR;
int Diff = ShiftAmt - C1;
if (Diff < 0) {
Diff = -Diff;
- Opc = X86ISD::KSHIFTL;
+ NewOpc = X86ISD::KSHIFTL;
}
SDLoc dl(Op);
SDValue NewSA = TLO.DAG.getTargetConstant(Diff, dl, MVT::i8);
return TLO.CombineTo(
- Op, TLO.DAG.getNode(Opc, dl, VT, Src.getOperand(0), NewSA));
+ Op, TLO.DAG.getNode(NewOpc, dl, VT, Src.getOperand(0), NewSA));
}
}
More information about the llvm-commits
mailing list