aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2021-02-18 08:59:38 -0800
committerPhilip Reames <listmail@philipreames.com>2021-02-18 09:00:22 -0800
commit5318d9e5165a6e7f10c602ab85cb24ed2dfceed4 (patch)
treed1677ff7db7da513bd0578b7ae21d313007e159f /llvm/lib/CodeGen/SplitKit.cpp
parent9d36f70ef28a1e6bba763b40c9c49a76c520a56e (diff)
downloadllvm-5318d9e5165a6e7f10c602ab85cb24ed2dfceed4.zip
llvm-5318d9e5165a6e7f10c602ab85cb24ed2dfceed4.tar.gz
llvm-5318d9e5165a6e7f10c602ab85cb24ed2dfceed4.tar.bz2
[splitkit] Add a minor wrapper function for readability [NFC]
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r--llvm/lib/CodeGen/SplitKit.cpp6
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");