[llvm] [CodeGen] Remove unsatisfiable hints in RegAllocGreedy. (PR #190983)

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 21:19:39 PDT 2026


================
@@ -2971,6 +2997,7 @@ bool RAGreedy::run(MachineFunction &mf) {
                                             *VRM, *VRAI, Matrix));
 
   VRAI->calculateSpillWeightsAndHints();
+  removeUnsatisfiableHints();
----------------
qcolombet wrote:

We'll need to call that before the calculateSpillWeightsAndHints because IIRC we do some boost as well in the spill cost for hints (albeit much smaller boost).

https://github.com/llvm/llvm-project/pull/190983


More information about the llvm-commits mailing list