- 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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/CodeGen/MIR/Generic/machine-region-info.ll | ||
---|---|---|
1–2 | I'd try to write a .mir test directly, instead of only generating it as an intermediate step. |
Comment Actions
- Simplify MIR test. Removing IR causes MachineBasicBlock::getName() to return "(null)".
- Return an empty string instead of "(null)" in MachineBasicBlock::getName() (same behavior as Value::getName()).
machine-region-info to better match name