From a501b3c14ad64dc621a4829f0cf5cfdc2a0a9caa Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 12 Oct 2019 16:36:52 +0000 Subject: [PATCH] Fix cppcheck shadow variable name warnings. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374668 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelLowering.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index e7e5885a7b3..deb194124a8 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -34259,17 +34259,17 @@ bool X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode( 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::SimplifyDemandedVectorEltsForTargetNode( 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)); } } -- 2.40.0