CodeGen: Refactor renameDisconnectedComponents() as a pass
Refactor LiveIntervals::renameDisconnectedComponents() to be a pass. Also change the name to "RenameIndependentSubregs": - renameDisconnectedComponents() worked on a MachineFunction at a time so it is a natural candidate for a machine function pass. - The algorithm is testable with a .mir test now. - This also fixes a problem where the lazy renaming as part of the MachineScheduler introduced IMPLICIT_DEF instructions after the number of a nodes in a region were counted leading to a mismatch. Differential Revision: http://reviews.llvm.org/D20507 llvm-svn: 271345
This commit is contained in:
@@ -68,6 +68,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
|
||||
initializePreISelIntrinsicLoweringPass(Registry);
|
||||
initializeProcessImplicitDefsPass(Registry);
|
||||
initializeRegisterCoalescerPass(Registry);
|
||||
initializeRenameIndependentSubregsPass(Registry);
|
||||
initializeShrinkWrapPass(Registry);
|
||||
initializeSlotIndexesPass(Registry);
|
||||
initializeStackColoringPass(Registry);
|
||||
|
||||
Reference in New Issue
Block a user