summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-07-12 22:23:42 +0000
committerTim Northover <tnorthover@apple.com>2016-07-12 22:23:42 +0000
commit72eebfa4b0f3ac876d5600558ffca08d3893c5f8 (patch)
tree05f8805853dfbf69d5e38292650fea981aedb0c0 /llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
parent786724a22ecff6afa9484714be8448429fdd021c (diff)
downloadbcm5719-llvm-72eebfa4b0f3ac876d5600558ffca08d3893c5f8.tar.gz
bcm5719-llvm-72eebfa4b0f3ac876d5600558ffca08d3893c5f8.zip
GlobalISel: freeze reserved regs after IRTranslator.
We can freeze the registers after the MachineFrameInfo has been configured (by telling it about calls, inline asm, ...). This doesn't happen at all yet, but will be part of IR translation. Fixes -verify-machineinstrs assertion. llvm-svn: 275221
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index f4f1906be81..b8a960cfac7 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -155,5 +155,10 @@ bool IRTranslator::runOnMachineFunction(MachineFunction &MF) {
}
}
}
+
+ // Now that the MachineFrameInfo has been configured, no further changes to
+ // the reserved registers are possible.
+ MRI->freezeReservedRegs(MF);
+
return false;
}
OpenPOWER on IntegriCloud