We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c10766c commit 853094fCopy full SHA for 853094f
llvm/lib/CodeGen/VirtRegMap.cpp
@@ -99,7 +99,7 @@ unsigned VirtRegMap::createSpillSlot(const TargetRegisterClass *RC) {
99
// Set preferred alignment if we are still able to realign the stack
100
auto &ST = MF->getSubtarget();
101
Align CurrentAlign = ST.getFrameLowering()->getStackAlign();
102
- if (Alignment > CurrentAlign && !ST.getRegisterInfo()->canRealignStack(*MF)) {
+ if (Alignment > CurrentAlign && !TRI->canRealignStack(*MF)) {
103
Alignment = CurrentAlign;
104
}
105
int SS = MF->getFrameInfo().CreateSpillStackObject(Size, Alignment);
0 commit comments