Skip to content

Commit 9e8eba2

Browse files
committed
Minor knit.
1 parent 3dc7da1 commit 9e8eba2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/lib/Target/SystemZ/SystemZMachineScheduler.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,29 +168,29 @@ int SystemZPreRASchedStrategy::computeSULivenessScore(
168168

169169
// Before pulling down a load (to close the live range), the liveness of
170170
// the use operands is checked.
171-
bool UsesLiveVR = false, UsesLiveAll = false;
171+
bool UsesLivePrio = false, UsesLiveAll = false;
172172
if (isRegDef(MO0)) {
173173
// Extract the PressureChanges that all fp/vector or GR64/GR32/GRH32 regs
174174
// affect respectively. misched-prera-pdiffs.mir tests against any future
175175
// change in the PressureSets modelling, so simply hard-code them here.
176-
int VRPressureChange = 0;
176+
int PrioPressureChange = 0;
177177
int GPRPressureChange = 0;
178178
const PressureDiff &PDiff = DAG->getPressureDiff(SU);
179179
for (const PressureChange &PC : PDiff) {
180180
if (!PC.isValid())
181181
break;
182182
if (PC.getPSet() == SystemZ::VR16Bit)
183-
VRPressureChange = PC.getUnitInc();
183+
PrioPressureChange = PC.getUnitInc();
184184
else if (PC.getPSet() == SystemZ::GRX32Bit)
185185
GPRPressureChange = PC.getUnitInc();
186186
}
187187
const TargetRegisterClass *RC = DAG->MRI.getRegClass(MO0.getReg());
188188
int RegWeight = TRI->getRegClassWeight(RC).RegWeight;
189-
bool VRDefNoKill = VRPressureChange == -RegWeight;
189+
bool PrioDefNoKill = PrioPressureChange == -RegWeight;
190190
bool GPRDefNoKill = GPRPressureChange == -RegWeight;
191-
UsesLiveVR = (VRDefNoKill || (!VRPressureChange && GPRDefNoKill));
192-
UsesLiveAll = (VRDefNoKill && !GPRPressureChange) ||
193-
(!VRPressureChange && GPRDefNoKill);
191+
UsesLivePrio = (PrioDefNoKill || (!PrioPressureChange && GPRDefNoKill));
192+
UsesLiveAll = (PrioDefNoKill && !GPRPressureChange) ||
193+
(!PrioPressureChange && GPRDefNoKill);
194194
}
195195

196196
bool IsKillingStore = isStoreOfVReg(MI) &&
@@ -202,7 +202,7 @@ int SystemZPreRASchedStrategy::computeSULivenessScore(
202202
// live it should not be a problem to increase the scheduled latency given
203203
// the OOO execution.
204204
// TODO: Try scheduling small (DFSResult) subtrees as a unit.
205-
bool SchedLow = (PreservesSchedLat && UsesLiveVR) ||
205+
bool SchedLow = (PreservesSchedLat && UsesLivePrio) ||
206206
(HasDistToTop && UsesLiveAll);
207207

208208
// This handles regions with many chained stores of the same depth at the

0 commit comments

Comments
 (0)