diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-04 15:32:15 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-04 15:32:15 +0000 |
| commit | 8933907b5136b938080ed6bde8d35ebb45af1923 (patch) | |
| tree | 77a018842fcc6566466c8a98bec7e5a006242502 /llvm/include | |
| parent | 956ae3da415511230a2e15bfb01ad1995f4ad5b9 (diff) | |
| download | bcm5719-llvm-8933907b5136b938080ed6bde8d35ebb45af1923.tar.gz bcm5719-llvm-8933907b5136b938080ed6bde8d35ebb45af1923.zip | |
Stop caching basic block index ranges now that SlotIndexes can keep up.
llvm-svn: 128821
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/CodeGen/SlotIndexes.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SlotIndexes.h b/llvm/include/llvm/CodeGen/SlotIndexes.h index 2d9ae5f29a5..7cc31563b63 100644 --- a/llvm/include/llvm/CodeGen/SlotIndexes.h +++ b/llvm/include/llvm/CodeGen/SlotIndexes.h @@ -518,11 +518,21 @@ namespace llvm { return getMBBRange(MBB->getNumber()); } + /// Returns the first index in the given basic block number. + SlotIndex getMBBStartIdx(unsigned Num) const { + return getMBBRange(Num).first; + } + /// Returns the first index in the given basic block. SlotIndex getMBBStartIdx(const MachineBasicBlock *mbb) const { return getMBBRange(mbb).first; } + /// Returns the last index in the given basic block number. + SlotIndex getMBBEndIdx(unsigned Num) const { + return getMBBRange(Num).second; + } + /// Returns the last index in the given basic block. SlotIndex getMBBEndIdx(const MachineBasicBlock *mbb) const { return getMBBRange(mbb).second; |

