aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/InlineSpiller.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-02-19 21:54:43 -0800
committerCraig Topper <craig.topper@sifive.com>2025-02-19 21:54:43 -0800
commit92ddbbd89fa2a904119267d3565bed8e95f4f8e2 (patch)
tree3306bfbde1fe8a5ccef1c2f0a314be94f0e1305a /llvm/lib/CodeGen/InlineSpiller.cpp
parent57bac14f4bcc8b43edc3e27be3d93609f7f4037b (diff)
downloadllvm-92ddbbd89fa2a904119267d3565bed8e95f4f8e2.zip
llvm-92ddbbd89fa2a904119267d3565bed8e95f4f8e2.tar.gz
llvm-92ddbbd89fa2a904119267d3565bed8e95f4f8e2.tar.bz2
[CodeGen] Remove static member functions Register::stackSlot2Index/isStackSlot. NFC
Migrate the few users to the nonstatic member functions.
Diffstat (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp')
-rw-r--r--llvm/lib/CodeGen/InlineSpiller.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp
index 302dd37..3834a6d 100644
--- a/llvm/lib/CodeGen/InlineSpiller.cpp
+++ b/llvm/lib/CodeGen/InlineSpiller.cpp
@@ -1285,8 +1285,7 @@ void InlineSpiller::spillAll() {
void InlineSpiller::spill(LiveRangeEdit &edit) {
++NumSpilledRanges;
Edit = &edit;
- assert(!Register::isStackSlot(edit.getReg()) &&
- "Trying to spill a stack slot.");
+ assert(!edit.getReg().isStack() && "Trying to spill a stack slot.");
// Share a stack slot among all descendants of Original.
Original = VRM.getOriginal(edit.getReg());
StackSlot = VRM.getStackSlot(Original);