@@ -2136,8 +2136,8 @@ SDValue DAGCombiner::visitTokenFactor(SDNode *N) {
21362136 // If the sole user is a token factor, we should make sure we have a
21372137 // chance to merge them together. This prevents TF chains from inhibiting
21382138 // optimizations.
2139- if (N->hasOneUse() && N->use_begin ()->getOpcode() == ISD::TokenFactor)
2140- AddToWorklist(*(N->use_begin ()));
2139+ if (N->hasOneUse() && N->user_begin ()->getOpcode() == ISD::TokenFactor)
2140+ AddToWorklist(*(N->user_begin ()));
21412141
21422142 SmallVector<SDNode *, 8> TFs; // List of token factors to visit.
21432143 SmallVector<SDValue, 8> Ops; // Ops for replacing token factor.
@@ -10906,15 +10906,15 @@ SDValue DAGCombiner::visitSRL(SDNode *N) {
1090610906 // which we plan to do. This workaround can be removed once the DAG is
1090710907 // processed in topological order.
1090810908 if (N->hasOneUse()) {
10909- SDNode *Use = *N->use_begin ();
10909+ SDNode *User = *N->user_begin ();
1091010910
1091110911 // Look pass the truncate.
10912- if (Use ->getOpcode() == ISD::TRUNCATE && Use ->hasOneUse())
10913- Use = *Use->use_begin ();
10912+ if (User ->getOpcode() == ISD::TRUNCATE && User ->hasOneUse())
10913+ User = *User->user_begin ();
1091410914
10915- if (Use ->getOpcode() == ISD::BRCOND || Use ->getOpcode() == ISD::AND ||
10916- Use ->getOpcode() == ISD::OR || Use ->getOpcode() == ISD::XOR)
10917- AddToWorklist(Use );
10915+ if (User ->getOpcode() == ISD::BRCOND || User ->getOpcode() == ISD::AND ||
10916+ User ->getOpcode() == ISD::OR || User ->getOpcode() == ISD::XOR)
10917+ AddToWorklist(User );
1091810918 }
1091910919
1092010920 // Try to transform this shift into a multiply-high if
@@ -12917,7 +12917,7 @@ SDValue DAGCombiner::visitSETCC(SDNode *N) {
1291712917 // also lend itself to numerous combines and, as a result, it is desired
1291812918 // we keep the argument to a brcond as a setcc as much as possible.
1291912919 bool PreferSetCC =
12920- N->hasOneUse() && N->use_begin ()->getOpcode() == ISD::BRCOND;
12920+ N->hasOneUse() && N->user_begin ()->getOpcode() == ISD::BRCOND;
1292112921
1292212922 ISD::CondCode Cond = cast<CondCodeSDNode>(N->getOperand(2))->get();
1292312923 EVT VT = N->getValueType(0);
@@ -14825,7 +14825,7 @@ SDValue DAGCombiner::reduceLoadWidth(SDNode *N) {
1482514825
1482614826 // If the SRL is only used by a masking AND, we may be able to adjust
1482714827 // the ExtVT to make the AND redundant.
14828- SDNode *Mask = *(SRL->use_begin ());
14828+ SDNode *Mask = *(SRL->user_begin ());
1482914829 if (SRL.hasOneUse() && Mask->getOpcode() == ISD::AND &&
1483014830 isa<ConstantSDNode>(Mask->getOperand(1))) {
1483114831 unsigned Offset, ActiveBits;
@@ -15364,7 +15364,7 @@ SDValue DAGCombiner::visitTRUNCATE(SDNode *N) {
1536415364 }
1536515365
1536615366 // If this is anyext(trunc), don't fold it, allow ourselves to be folded.
15367- if (N->hasOneUse() && (N->use_begin ()->getOpcode() == ISD::ANY_EXTEND))
15367+ if (N->hasOneUse() && (N->user_begin ()->getOpcode() == ISD::ANY_EXTEND))
1536815368 return SDValue();
1536915369
1537015370 // Fold extract-and-trunc into a narrow extract. For example:
@@ -18370,7 +18370,7 @@ SDValue DAGCombiner::visitFP_EXTEND(SDNode *N) {
1837018370 return FoldedVOp;
1837118371
1837218372 // If this is fp_round(fpextend), don't fold it, allow ourselves to be folded.
18373- if (N->hasOneUse() && N->use_begin ()->getOpcode() == ISD::FP_ROUND)
18373+ if (N->hasOneUse() && N->user_begin ()->getOpcode() == ISD::FP_ROUND)
1837418374 return SDValue();
1837518375
1837618376 // fold (fp_extend c1fp) -> c1fp
@@ -19847,17 +19847,17 @@ struct LoadedSlice {
1984719847 bool canMergeExpensiveCrossRegisterBankCopy() const {
1984819848 if (!Inst || !Inst->hasOneUse())
1984919849 return false;
19850- SDNode *Use = *Inst->use_begin ();
19851- if (Use ->getOpcode() != ISD::BITCAST)
19850+ SDNode *User = *Inst->user_begin ();
19851+ if (User ->getOpcode() != ISD::BITCAST)
1985219852 return false;
1985319853 assert(DAG && "Missing context");
1985419854 const TargetLowering &TLI = DAG->getTargetLoweringInfo();
19855- EVT ResVT = Use ->getValueType(0);
19855+ EVT ResVT = User ->getValueType(0);
1985619856 const TargetRegisterClass *ResRC =
19857- TLI.getRegClassFor(ResVT.getSimpleVT(), Use ->isDivergent());
19857+ TLI.getRegClassFor(ResVT.getSimpleVT(), User ->isDivergent());
1985819858 const TargetRegisterClass *ArgRC =
19859- TLI.getRegClassFor(Use ->getOperand(0).getValueType().getSimpleVT(),
19860- Use ->getOperand(0)->isDivergent());
19859+ TLI.getRegClassFor(User ->getOperand(0).getValueType().getSimpleVT(),
19860+ User ->getOperand(0)->isDivergent());
1986119861 if (ArgRC == ResRC || !TLI.isOperationLegal(ISD::LOAD, ResVT))
1986219862 return false;
1986319863
@@ -20069,7 +20069,7 @@ bool DAGCombiner::SliceUpLoad(SDNode *N) {
2006920069 if (User->getOpcode() == ISD::SRL && User->hasOneUse() &&
2007020070 isa<ConstantSDNode>(User->getOperand(1))) {
2007120071 Shift = User->getConstantOperandVal(1);
20072- User = *User->use_begin ();
20072+ User = *User->user_begin ();
2007320073 }
2007420074
2007520075 // At this point, User is a Truncate, iff we encountered, trunc or
0 commit comments