[X86] SimplifyDemandedVectorEltsForTargetNode - fix shadow variable warning. NFCI.

Fixes cppcheck warning.

llvm-svn: 365271
This commit is contained in:
Simon Pilgrim 2019-07-06 18:46:09 +00:00
parent 01f1bad618
commit a7145c45a7

View File

@ -33908,9 +33908,9 @@ bool X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode(
// If we reuse the shift amount just for sse shift amounts then we know that
// only the bottom 64-bits are only ever used.
bool AssumeSingleUse = llvm::all_of(Amt->uses(), [&Amt](SDNode *Use) {
unsigned Opc = Use->getOpcode();
return (Opc == X86ISD::VSHL || Opc == X86ISD::VSRL ||
Opc == X86ISD::VSRA) &&
unsigned UseOpc = Use->getOpcode();
return (UseOpc == X86ISD::VSHL || UseOpc == X86ISD::VSRL ||
UseOpc == X86ISD::VSRA) &&
Use->getOperand(0) != Amt;
});