Skip to content

Commit b8ead21

Browse files
committed
Revert "[CodeGen] Fix register pressure computation in MachinePipeliner (#87030)"
This reverts commit a4dec9d because the test failed in the following builder: https://luci-milo.appspot.com/ui/p/fuchsia/builders/prod/clang-linux-x64/b8751864477467126481/overview
1 parent 6634c3e commit b8ead21

File tree

3 files changed

+166
-180
lines changed

3 files changed

+166
-180
lines changed

llvm/lib/CodeGen/MachinePipeliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ class HighRegisterPressureDetector {
12681268
// Calculate the upper limit of each pressure set
12691269
void computePressureSetLimit(const RegisterClassInfo &RCI) {
12701270
for (unsigned PSet = 0; PSet < PSetNum; PSet++)
1271-
PressureSetLimit[PSet] = TRI->getRegPressureSetLimit(MF, PSet);
1271+
PressureSetLimit[PSet] = RCI.getRegPressureSetLimit(PSet);
12721272

12731273
// We assume fixed registers, such as stack pointer, are already in use.
12741274
// Therefore subtracting the weight of the fixed registers from the limit of

llvm/test/CodeGen/AArch64/sms-regpress.mir

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)