diff options
author | Cameron Zwarich <zwarich@apple.com> | 2013-02-12 03:49:20 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2013-02-12 03:49:20 +0000 |
commit | dd58fa4869f9bff909720aaa428487a20fab1391 (patch) | |
tree | cef58151d341cdd826ec0953bd84e5998ff05880 /include | |
parent | dbf10c4349bb746e6120ff1195c1ce7e21bebf93 (diff) | |
download | external_llvm-dd58fa4869f9bff909720aaa428487a20fab1391.zip external_llvm-dd58fa4869f9bff909720aaa428487a20fab1391.tar.gz external_llvm-dd58fa4869f9bff909720aaa428487a20fab1391.tar.bz2 |
Add blocks to the LiveIntervalAnalysis RegMaskBlocks array when splitting
a critical edge.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 3c6a2be..b6cc111 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -214,6 +214,13 @@ namespace llvm { return Indexes->getMBBFromIndex(index); } + void insertMBBInMaps(MachineBasicBlock *MBB) { + Indexes->insertMBBInMaps(MBB); + assert(unsigned(MBB->getNumber()) == RegMaskBlocks.size() && + "Blocks must be added in order."); + RegMaskBlocks.push_back(std::make_pair(MBB->getNumber(), 0)); + } + SlotIndex InsertMachineInstrInMaps(MachineInstr *MI) { return Indexes->insertMachineInstrInMaps(MI); } |