diff options
author | Eric Christopher <echristo@apple.com> | 2010-07-17 00:33:04 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-07-17 00:33:04 +0000 |
commit | 697cba8ec2b3f5160175fd5b4a641dbd48606e17 (patch) | |
tree | 0461f7a537a03aa915019693cac6bcd71f4062a8 /lib/Target/X86/X86RegisterInfo.cpp | |
parent | 2b8271e0298f4218d6dddc80b49b51b38a646353 (diff) | |
download | external_llvm-697cba8ec2b3f5160175fd5b4a641dbd48606e17.zip external_llvm-697cba8ec2b3f5160175fd5b4a641dbd48606e17.tar.gz external_llvm-697cba8ec2b3f5160175fd5b4a641dbd48606e17.tar.bz2 |
Remove unnecessary check that was subsumed into canRealignStack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86RegisterInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 0703bdb..100e2db 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -456,9 +456,8 @@ bool X86RegisterInfo::canRealignStack(const MachineFunction &MF) const { bool X86RegisterInfo::needsStackRealignment(const MachineFunction &MF) const { const MachineFrameInfo *MFI = MF.getFrameInfo(); const Function *F = MF.getFunction(); - bool requiresRealignment = - RealignStack && ((MFI->getMaxAlignment() > StackAlign) || - F->hasFnAttr(Attribute::StackAlignment)); + bool requiresRealignment = ((MFI->getMaxAlignment() > StackAlign) || + F->hasFnAttr(Attribute::StackAlignment)); // FIXME: Currently we don't support stack realignment for functions with // variable-sized allocas. |