Skip to content

Commit b5d25ea

Browse files
committed
Code cleanup
1 parent 9f5b2fd commit b5d25ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ bool SIRegisterInfo::hasBasePointer(const MachineFunction &MF) const {
528528
// For functions with dynamically sized stack objects, we need to reference
529529
// off the base pointer in the epilog to restore the stack frame.
530530
const MachineFrameInfo &MFI = MF.getFrameInfo();
531-
return (MFI.getNumFixedObjects() && shouldRealignStack(MF)) ||
532-
(MFI.hasVarSizedObjects() && shouldRealignStack(MF));
531+
return (MFI.getNumFixedObjects() || MFI.hasVarSizedObjects()) &&
532+
shouldRealignStack(MF);
533533
}
534534

535535
Register SIRegisterInfo::getBaseRegister() const { return AMDGPU::SGPR34; }

0 commit comments

Comments
 (0)