Add a safe-guard against repeated splitting for some rare cases.

The number of blocks covered by a live range must be strictly decreasing when
splitting, otherwise we can't allow repeated splitting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen
2011-04-26 22:33:12 +00:00
parent d5c7f7cb5e
commit 9f4b893b84
3 changed files with 43 additions and 3 deletions
+5
View File
@@ -150,6 +150,11 @@ public:
/// getThroughBlocks - Return the set of through blocks.
const BitVector &getThroughBlocks() const { return ThroughBlocks; }
/// countLiveBlocks - Return the number of blocks where li is live.
/// This is guaranteed to return the same number as getNumThroughBlocks() +
/// getUseBlocks().size() after calling analyze(li).
unsigned countLiveBlocks(const LiveInterval *li) const;
typedef SmallPtrSet<const MachineBasicBlock*, 16> BlockPtrSet;
/// getMultiUseBlocks - Add basic blocks to Blocks that may benefit from