[llvm] 80afdbe - [RISCV] Use RISCVSubtarget::is64Bit() instead of hasFeature(RISCV::Feature64Bit). NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 27 14:02:25 PST 2024
Author: Craig Topper
Date: 2024-11-27T14:02:15-08:00
New Revision: 80afdbe6a55a10cb246cb748149f0d41e778d01b
URL: https://github.com/llvm/llvm-project/commit/80afdbe6a55a10cb246cb748149f0d41e778d01b
DIFF: https://github.com/llvm/llvm-project/commit/80afdbe6a55a10cb246cb748149f0d41e778d01b.diff
LOG: [RISCV] Use RISCVSubtarget::is64Bit() instead of hasFeature(RISCV::Feature64Bit). NFC
Added:
Modified:
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
index 2da32fece061bb..c89239aab70043 100644
--- a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -151,7 +151,7 @@ static void emitSCSPrologue(MachineFunction &MF, MachineBasicBlock &MBB,
Register SCSPReg = RISCVABI::getSCSPReg();
- bool IsRV64 = STI.hasFeature(RISCV::Feature64Bit);
+ bool IsRV64 = STI.is64Bit();
int64_t SlotSize = STI.getXLen() / 8;
// Store return address to shadow call stack
// addi gp, gp, [4|8]
@@ -215,7 +215,7 @@ static void emitSCSEpilogue(MachineFunction &MF, MachineBasicBlock &MBB,
Register SCSPReg = RISCVABI::getSCSPReg();
- bool IsRV64 = STI.hasFeature(RISCV::Feature64Bit);
+ bool IsRV64 = STI.is64Bit();
int64_t SlotSize = STI.getXLen() / 8;
// Load return address from shadow call stack
// l[w|d] ra, -[4|8](gp)
More information about the llvm-commits
mailing list