@@ -271,17 +271,17 @@ namespace {
271
271
/// If so, return true.
272
272
bool SimplifyDemandedBits(SDValue Op) {
273
273
unsigned BitWidth = Op.getScalarValueSizeInBits();
274
- APInt Demanded = APInt::getAllOnesValue(BitWidth);
275
- return SimplifyDemandedBits(Op, Demanded );
274
+ APInt DemandedBits = APInt::getAllOnesValue(BitWidth);
275
+ return SimplifyDemandedBits(Op, DemandedBits );
276
276
}
277
277
278
278
/// Check the specified vector node value to see if it can be simplified or
279
279
/// if things it uses can be simplified as it only uses some of the
280
280
/// elements. If so, return true.
281
281
bool SimplifyDemandedVectorElts(SDValue Op) {
282
282
unsigned NumElts = Op.getValueType().getVectorNumElements();
283
- APInt Demanded = APInt::getAllOnesValue(NumElts);
284
- return SimplifyDemandedVectorElts(Op, Demanded );
283
+ APInt DemandedElts = APInt::getAllOnesValue(NumElts);
284
+ return SimplifyDemandedVectorElts(Op, DemandedElts );
285
285
}
286
286
287
287
bool SimplifyDemandedBits(SDValue Op, const APInt &Demanded);
@@ -1093,10 +1093,10 @@ CommitTargetLoweringOpt(const TargetLowering::TargetLoweringOpt &TLO) {
1093
1093
1094
1094
/// Check the specified integer node value to see if it can be simplified or if
1095
1095
/// things it uses can be simplified by bit propagation. If so, return true.
1096
- bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &Demanded ) {
1096
+ bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &DemandedBits ) {
1097
1097
TargetLowering::TargetLoweringOpt TLO(DAG, LegalTypes, LegalOperations);
1098
1098
KnownBits Known;
1099
- if (!TLI.SimplifyDemandedBits(Op, Demanded , Known, TLO))
1099
+ if (!TLI.SimplifyDemandedBits(Op, DemandedBits , Known, TLO))
1100
1100
return false;
1101
1101
1102
1102
// Revisit the node.
@@ -1115,12 +1115,13 @@ bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &Demanded) {
1115
1115
/// Check the specified vector node value to see if it can be simplified or
1116
1116
/// if things it uses can be simplified as it only uses some of the elements.
1117
1117
/// If so, return true.
1118
- bool DAGCombiner::SimplifyDemandedVectorElts(SDValue Op, const APInt &Demanded,
1118
+ bool DAGCombiner::SimplifyDemandedVectorElts(SDValue Op,
1119
+ const APInt &DemandedElts,
1119
1120
bool AssumeSingleUse) {
1120
1121
TargetLowering::TargetLoweringOpt TLO(DAG, LegalTypes, LegalOperations);
1121
1122
APInt KnownUndef, KnownZero;
1122
- if (!TLI.SimplifyDemandedVectorElts(Op, Demanded , KnownUndef, KnownZero, TLO ,
1123
- 0, AssumeSingleUse))
1123
+ if (!TLI.SimplifyDemandedVectorElts(Op, DemandedElts , KnownUndef, KnownZero,
1124
+ TLO, 0, AssumeSingleUse))
1124
1125
return false;
1125
1126
1126
1127
// Revisit the node.
0 commit comments