[llvm] 853094f - [VirtRegMap] Use TRI member variable. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 15 09:14:15 PDT 2025
Author: Craig Topper
Date: 2025-08-15T09:14:09-07:00
New Revision: 853094fd813f773326b452ec5f3360cc5f2be0f7
URL: https://github.com/llvm/llvm-project/commit/853094fd813f773326b452ec5f3360cc5f2be0f7
DIFF: https://github.com/llvm/llvm-project/commit/853094fd813f773326b452ec5f3360cc5f2be0f7.diff
LOG: [VirtRegMap] Use TRI member variable. NFC
Added:
Modified:
llvm/lib/CodeGen/VirtRegMap.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index 99ba893d6f096..972bd8f550e8b 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/lib/CodeGen/VirtRegMap.cpp
@@ -99,7 +99,7 @@ unsigned VirtRegMap::createSpillSlot(const TargetRegisterClass *RC) {
// Set preferred alignment if we are still able to realign the stack
auto &ST = MF->getSubtarget();
Align CurrentAlign = ST.getFrameLowering()->getStackAlign();
- if (Alignment > CurrentAlign && !ST.getRegisterInfo()->canRealignStack(*MF)) {
+ if (Alignment > CurrentAlign && !TRI->canRealignStack(*MF)) {
Alignment = CurrentAlign;
}
int SS = MF->getFrameInfo().CreateSpillStackObject(Size, Alignment);
More information about the llvm-commits
mailing list