[llvm-commits] [llvm] r88800 - /llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Nov 14 10:01:43 PST 2009
Author: asl
Date: Sat Nov 14 12:01:41 2009
New Revision: 88800
URL: http://llvm.org/viewvc/llvm-project?rev=88800&view=rev
Log:
Temporary disable the error - it seems to be too conservative.
Modified:
llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp?rev=88800&r1=88799&r2=88800&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp Sat Nov 14 12:01:41 2009
@@ -459,12 +459,13 @@
RealignStack && (MFI->getMaxAlignment() > StackAlign);
// FIXME: Currently we don't support stack realignment for functions with
- // variable-sized allocas
- if (requiresRealignment && MFI->hasVarSizedObjects())
+ // variable-sized allocas.
+ // FIXME: Temporary disable the error - it seems to be too conservative.
+ if (0 && requiresRealignment && MFI->hasVarSizedObjects())
llvm_report_error(
"Stack realignment in presense of dynamic allocas is not supported");
- return requiresRealignment;
+ return (requiresRealignment && !MFI->hasVarSizedObjects());
}
bool X86RegisterInfo::hasReservedCallFrame(MachineFunction &MF) const {
More information about the llvm-commits
mailing list