mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user