[llvm-branch-commits] [llvm] [CodeGen] Allow rematerializer to rematerialize at the end of a block (PR #184339)

Lucas Ramirez via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Mar 24 05:35:12 PDT 2026


================
@@ -785,7 +795,7 @@ Printable Rematerializer::printUser(const MachineInstr *MI) const {
     if (RegIdx != NoReg)
       OS << printID(RegIdx);
     else
-      OS << "(-/-)[" << MIRegion.at(MI) << ']';
+      OS << "(-/-)[?]";
----------------
lucas-rami wrote:

That makes sense to me. Made it optional as to not force callers to know this information.

I also spotted and fixed a couple incorrect uses of `dbgs()` instead of the generic `raw_ostream &OS` in print methods.

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


More information about the llvm-branch-commits mailing list