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 9f5b2fd commit b5d25eaCopy full SHA for b5d25ea
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
@@ -528,8 +528,8 @@ bool SIRegisterInfo::hasBasePointer(const MachineFunction &MF) const {
528
// For functions with dynamically sized stack objects, we need to reference
529
// off the base pointer in the epilog to restore the stack frame.
530
const MachineFrameInfo &MFI = MF.getFrameInfo();
531
- return (MFI.getNumFixedObjects() && shouldRealignStack(MF)) ||
532
- (MFI.hasVarSizedObjects() && shouldRealignStack(MF));
+ return (MFI.getNumFixedObjects() || MFI.hasVarSizedObjects()) &&
+ shouldRealignStack(MF);
533
}
534
535
Register SIRegisterInfo::getBaseRegister() const { return AMDGPU::SGPR34; }
0 commit comments