diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-19 22:11:48 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-01-19 22:11:48 +0000 |
commit | ccdb3fcef9aeb9f683cd738afbe1cd961bb0c1ef (patch) | |
tree | bc4a7bedadb947b8a5a0af21a9d6f7e793e3b5e7 /lib/CodeGen/SplitKit.cpp | |
parent | 5c6fc1cab774244fba2746b84f2b86d71b897733 (diff) |
Implement RAGreedy::splitAroundRegion and remove loop splitting.
Region splitting includes loop splitting as a subset, and it is more generic.
The splitting heuristics for variables that are live in more than one block are
now:
1. Try to create a region that covers multiple basic blocks.
2. Try to create a new live range for each block with multiple uses.
3. Spill.
Steps 2 and 3 are similar to what the standard spiller is doing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | lib/CodeGen/SplitKit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index 7ed9089ecd..a13134403a 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/lib/CodeGen/SplitKit.cpp @@ -867,9 +867,7 @@ void SplitEditor::leaveIntvAtTop(MachineBasicBlock &MBB) { /// LiveInterval, and ranges can be trimmed. void SplitEditor::closeIntv() { assert(openli_.getLI() && "openIntv not called before closeIntv"); - - DEBUG(dbgs() << " closeIntv cleaning up\n"); - DEBUG(dbgs() << " open " << *openli_.getLI() << '\n'); + DEBUG(dbgs() << " closeIntv " << *openli_.getLI() << '\n'); openli_.reset(0); } @@ -966,6 +964,8 @@ void SplitEditor::computeRemainder() { // FIXME: If a single value is redefined, just move the def and truncate. LiveInterval &parent = edit_.getParent(); + DEBUG(dbgs() << "computeRemainder from " << parent << '\n'); + // Values that are fully contained in the split intervals. SmallPtrSet<const VNInfo*, 8> deadValues; // Map all curli values that should have live defs in dupli. |