diff options
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index ff993b4..5f97729 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -1531,7 +1531,7 @@ bool SplitAnalysis::shouldSplitSingleBlock(const BlockInfo &BI, void SplitEditor::splitSingleBlock(const SplitAnalysis::BlockInfo &BI) { openIntv(); - SlotIndex LastSplitPoint = SA.getLastSplitPoint(BI.MBB->getNumber()); + SlotIndex LastSplitPoint = SA.getLastSplitPoint(BI.MBB); SlotIndex SegStart = enterIntvBefore(std::min(BI.FirstInstr, LastSplitPoint)); if (!BI.LiveOut || BI.LastInstr < LastSplitPoint) { @@ -1685,7 +1685,7 @@ void SplitEditor::splitRegInBlock(const SplitAnalysis::BlockInfo &BI, return; } - SlotIndex LSP = SA.getLastSplitPoint(BI.MBB->getNumber()); + SlotIndex LSP = SA.getLastSplitPoint(BI.MBB); if (!LeaveBefore || LeaveBefore > BI.LastInstr.getBoundaryIndex()) { // @@ -1762,7 +1762,7 @@ void SplitEditor::splitRegOutBlock(const SplitAnalysis::BlockInfo &BI, << ", enter after " << EnterAfter << (BI.LiveIn ? ", stack-in" : ", defined in block")); - SlotIndex LSP = SA.getLastSplitPoint(BI.MBB->getNumber()); + SlotIndex LSP = SA.getLastSplitPoint(BI.MBB); assert(IntvOut && "Must have register out"); assert(BI.LiveOut && "Must be live-out"); |