diff options
author | Puyan Lotfi <puyan@puyan.org> | 2019-09-05 20:44:33 +0000 |
---|---|---|
committer | Puyan Lotfi <puyan@puyan.org> | 2019-09-05 20:44:33 +0000 |
commit | dc97ca9f25aca6d14981a889748fd0810e2dd0e8 (patch) | |
tree | 6a3a559b98e0eab69fcde63c38a113873f51df0a /llvm/lib/CodeGen/CodeGen.cpp | |
parent | bf7602b261c7167966c6ae5cf153f6e4847ace3b (diff) | |
download | llvm-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.cpp | 1 |
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); |