IR: drop RegisterAllocationData

This sideband is now unused, registers are encoded directly in the IR. So we can
garbage collect all this code for quite some savings.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig committed 2025-05-19 13:42:59 -04:00
1 parent 49f8332c5b
commit 65ee1fafa8
18 files changed
+23 -154

No files matched your search

@@ -38,12 +38,6 @@ IRDumper::IRDumper() {
}
void IRDumper::Run(IREmitter* IREmit) {
auto RAPass = Manager->GetPass<IR::RegisterAllocationPass>("RA");
IR::RegisterAllocationData* RA {};
if (RAPass) {
RA = RAPass->GetAllocationData();
}
FEXCore::File::File FD {};
if (DumpIR() == "stderr") {
FD = FEXCore::File::File::GetStdERR();
@@ -64,7 +58,7 @@ void IRDumper::Run(IREmitter* IREmit) {
if (FD.IsValid() || DumpToLog) {
fextl::stringstream out;
FEXCore::IR::Dump(&out, &IR, RA);
FEXCore::IR::Dump(&out, &IR);
if (FD.IsValid()) {
fextl::fmt::print(FD, "IR-{} 0x{:x}:\n{}\n@@@@@\n", IR.PostRA() ? "post" : "pre", HeaderOp->OriginalRIP, out.str());
} else {