From: Simon Pilgrim Date: Sun, 2 Jun 2019 10:03:56 +0000 (+0000) Subject: [TargetLowering] SimplifyDemandedVectorElts - use same arg names as SimplifyDemandedB... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1e70d12644bce83a071ec4e387237272e91bc28;p=llvm [TargetLowering] SimplifyDemandedVectorElts - use same arg names as SimplifyDemandedBits. NFCI. Helps with debugging as we recurse between them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362321 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 4ad578d80fa..43251d06ef1 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -1801,11 +1801,11 @@ static APInt getKnownUndefForVectorBinop(SDValue BO, SelectionDAG &DAG, } bool TargetLowering::SimplifyDemandedVectorElts( - SDValue Op, const APInt &DemandedEltMask, APInt &KnownUndef, + SDValue Op, const APInt &OriginalDemandedElts, APInt &KnownUndef, APInt &KnownZero, TargetLoweringOpt &TLO, unsigned Depth, bool AssumeSingleUse) const { EVT VT = Op.getValueType(); - APInt DemandedElts = DemandedEltMask; + APInt DemandedElts = OriginalDemandedElts; unsigned NumElts = DemandedElts.getBitWidth(); assert(VT.isVector() && "Expected vector op"); assert(VT.getVectorNumElements() == NumElts && @@ -2237,8 +2237,8 @@ bool TargetLowering::SimplifyDemandedVectorElts( } else { KnownBits Known; APInt DemandedBits = APInt::getAllOnesValue(EltSizeInBits); - if (SimplifyDemandedBits(Op, DemandedBits, DemandedEltMask, Known, TLO, - Depth, AssumeSingleUse)) + if (SimplifyDemandedBits(Op, DemandedBits, OriginalDemandedElts, Known, + TLO, Depth, AssumeSingleUse)) return true; } break;