aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2019-09-05 20:44:33 +0000
committerPuyan Lotfi <puyan@puyan.org>2019-09-05 20:44:33 +0000
commitdc97ca9f25aca6d14981a889748fd0810e2dd0e8 (patch)
tree6a3a559b98e0eab69fcde63c38a113873f51df0a /llvm/lib/CodeGen/CodeGen.cpp
parentbf7602b261c7167966c6ae5cf153f6e4847ace3b (diff)
downloadllvm-dc97ca9f25aca6d14981a889748fd0810e2dd0e8.zip
llvm-dc97ca9f25aca6d14981a889748fd0810e2dd0e8.tar.gz
llvm-dc97ca9f25aca6d14981a889748fd0810e2dd0e8.tar.bz2
[MIR] MIRNamer pass for improving MIR test authoring experience.
This patch reuses the MIR vreg renamer from the MIRCanonicalizerPass to cleanup names of vregs in a MIR file for MIR test authors. I found it useful when writing a regression test for a globalisel failure I encountered recently and thought it might be useful for other folks as well. Differential Revision: https://reviews.llvm.org/D67209 llvm-svn: 371121
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp
index 51be4e3..d369160 100644
--- a/llvm/lib/CodeGen/CodeGen.cpp
+++ b/llvm/lib/CodeGen/CodeGen.cpp
@@ -54,6 +54,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
initializeLocalStackSlotPassPass(Registry);
initializeLowerIntrinsicsPass(Registry);
initializeMIRCanonicalizerPass(Registry);
+ initializeMIRNamerPass(Registry);
initializeMachineBlockFrequencyInfoPass(Registry);
initializeMachineBlockPlacementPass(Registry);
initializeMachineBlockPlacementStatsPass(Registry);