diff options
| author | Craig Topper <craig.topper@sifive.com> | 2025-02-20 08:35:50 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-20 08:35:50 -0800 |
| commit | ff99af7ea03b3be46bec7203bd2b74048d29a52a (patch) | |
| tree | 199d8c4e560000d1f30e4d48161c254760be8a37 /llvm/lib/CodeGen/RegisterPressure.cpp | |
| parent | 609732cc2e6572b25ce195cc009e2b4bae42dcda (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.cpp | 2 |
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); } |
