diff options
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r-- | lib/CodeGen/SplitKit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index 236986e4af..3e14dcf43d 100644 --- a/lib/CodeGen/SplitKit.h +++ b/lib/CodeGen/SplitKit.h @@ -50,6 +50,9 @@ public: typedef SmallPtrSet<const MachineInstr*, 16> InstrPtrSet; InstrPtrSet usingInstrs_; + // Sorted slot indexes of using instructions. + SmallVector<SlotIndex, 8> UseSlots; + // The number of instructions using curli in each basic block. typedef DenseMap<const MachineBasicBlock*, unsigned> BlockCountMap; BlockCountMap usingBlocks_; @@ -81,6 +84,11 @@ public: /// new interval. void clear(); + /// hasUses - Return true if MBB has any uses of curli. + bool hasUses(const MachineBasicBlock *MBB) const { + return usingBlocks_.lookup(MBB); + } + typedef SmallPtrSet<const MachineBasicBlock*, 16> BlockPtrSet; typedef SmallPtrSet<const MachineLoop*, 16> LoopPtrSet; |