diff options
| author | Matthias Braun <matze@braunis.de> | 2017-02-18 00:41:16 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2017-02-18 00:41:16 +0000 |
| commit | 431305927f21c3db7bf687175fad4883ed672492 (patch) | |
| tree | 31fb70d169e44614ae3d7862c306f92823b789af /llvm/lib/CodeGen/CodeGen.cpp | |
| parent | 37a93df3d589d2f590994e7978554ed299ee5a24 (diff) | |
| download | bcm5719-llvm-431305927f21c3db7bf687175fad4883ed672492.tar.gz bcm5719-llvm-431305927f21c3db7bf687175fad4883ed672492.zip | |
MachineRegionInfo: Fix pass initialization
- Adapt MachineBasicBlock::getName() to have the same behavior as the IR
BasicBlock (Value::getName()).
- Add it to lib/CodeGen/CodeGen.cpp::initializeCodeGen so that it is linked in
the CodeGen library.
- MachineRegionInfoPass's name conflicts with RegionInfoPass's name ("region").
- MachineRegionInfo should depend on MachineDominatorTree,
MachinePostDominatorTree and MachineDominanceFrontier instead of their
respective IR versions.
- Since there were no tests for this, add a X86 MIR test.
Patch by Francis Visoiu Mistrih<fvisoiumistrih@apple.com>
llvm-svn: 295518
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 9fb796a6d20..25a865a0119 100644 --- a/llvm/lib/CodeGen/CodeGen.cpp +++ b/llvm/lib/CodeGen/CodeGen.cpp @@ -58,6 +58,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) { initializeMachineModuleInfoPass(Registry); initializeMachinePipelinerPass(Registry); initializeMachinePostDominatorTreePass(Registry); + initializeMachineRegionInfoPassPass(Registry); initializeMachineSchedulerPass(Registry); initializeMachineSinkingPass(Registry); initializeMachineVerifierPassPass(Registry); |

