summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/RegisterPressure.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-02-20 08:35:50 -0800
committerGitHub <noreply@github.com>2025-02-20 08:35:50 -0800
commitff99af7ea03b3be46bec7203bd2b74048d29a52a (patch)
tree199d8c4e560000d1f30e4d48161c254760be8a37 /llvm/lib/CodeGen/RegisterPressure.cpp
parent609732cc2e6572b25ce195cc009e2b4bae42dcda (diff)
[CodeGen] Remove static member function Register::isVirtualRegister. NFC (#127968)
Use nonstatic member instead. This requires explicit conversions, but many will go away as we continue converting unsigned to Register. In a few places where it was simple, I changed unsigned to Register.
Diffstat (limited to 'llvm/lib/CodeGen/RegisterPressure.cpp')
-rw-r--r--llvm/lib/CodeGen/RegisterPressure.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegisterPressure.cpp b/llvm/lib/CodeGen/RegisterPressure.cpp
index ca51b670b46c..5a4c3a0efef2 100644
--- a/llvm/lib/CodeGen/RegisterPressure.cpp
+++ b/llvm/lib/CodeGen/RegisterPressure.cpp
@@ -231,7 +231,7 @@ void LiveRegSet::clear() {
}
static const LiveRange *getLiveRange(const LiveIntervals &LIS, unsigned Reg) {
- if (Register::isVirtualRegister(Reg))
+ if (Register(Reg).isVirtual())
return &LIS.getInterval(Reg);
return LIS.getCachedRegUnit(Reg);
}