[llvm-commits] [llvm] r50164 - /llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp

Anton Korobeynikov asl at math.spbu.ru
Wed Apr 23 11:21:50 PDT 2008


Author: asl
Date: Wed Apr 23 13:21:50 2008
New Revision: 50164

URL: http://llvm.org/viewvc/llvm-project?rev=50164&view=rev
Log:
Use precomputed value, if any

Modified:
    llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp

Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=50164&r1=50163&r2=50164&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Wed Apr 23 13:21:50 2008
@@ -313,7 +313,7 @@
   // Loop over all of the stack objects, assigning sequential addresses...
   MachineFrameInfo *FFI = Fn.getFrameInfo();
 
-  unsigned MaxAlign = 0;
+  unsigned MaxAlign = FFI->getMaxAlignment();
 
   // Start at the beginning of the local area.
   // The Offset is the distance from the stack top in the direction





More information about the llvm-commits mailing list