[PATCH] D30119: MachineRegionInfo: fix pass initialization

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 17 15:01:13 PST 2017


thegameg created this revision.
Herald added a subscriber: wdng.

- 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 generic MIR test.


https://reviews.llvm.org/D30119

Files:
  lib/CodeGen/CodeGen.cpp
  lib/CodeGen/MachineRegionInfo.cpp
  test/CodeGen/MIR/Generic/machine-region-info.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30119.88965.patch
Type: text/x-patch
Size: 3776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170217/86454daa/attachment-0001.bin>


More information about the llvm-commits mailing list