[llvm] 9ebbe25 - RegAllocGreedy: Common up part of the priority calculation. NFC.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu May 5 02:46:22 PDT 2022
Author: Jay Foad
Date: 2022-05-05T10:35:33+01:00
New Revision: 9ebbe25034d2247609b095564954bd84fa12123d
URL: https://github.com/llvm/llvm-project/commit/9ebbe25034d2247609b095564954bd84fa12123d
DIFF: https://github.com/llvm/llvm-project/commit/9ebbe25034d2247609b095564954bd84fa12123d.diff
LOG: RegAllocGreedy: Common up part of the priority calculation. NFC.
Added:
Modified:
llvm/lib/CodeGen/RegAllocGreedy.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index a6fc9b1ee011c..31721da2c8309 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -319,15 +319,14 @@ void RAGreedy::enqueue(PQueue &CurQueue, const LiveInterval *LI) {
// large blocks on targets with many physical registers.
Prio = Indexes->getZeroIndex().getInstrDistance(LI->endIndex());
}
- Prio |= RC.AllocationPriority << 24;
} else {
// Allocate global and split ranges in long->short order. Long ranges that
// don't fit should be spilled (or split) ASAP so they don't create
// interference. Mark a bit to prioritize global above local ranges.
Prio = (1u << 29) + Size;
-
- Prio |= RC.AllocationPriority << 24;
}
+ Prio |= RC.AllocationPriority << 24;
+
// Mark a higher bit to prioritize global and local above RS_Split.
Prio |= (1u << 31);
More information about the llvm-commits
mailing list