[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFrameInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 4 10:40:09 PDT 2006
Changes in directory llvm/include/llvm/CodeGen:
MachineFrameInfo.h updated: 1.15 -> 1.16
---
Log message:
Make sure to consider alignment of variable sized objects.
This, along with the previous dag combiner fix, fixes
CodeGen/Alpha/2006-04-04-zextload.ll
---
Diffs of the changes: (+1 -0)
MachineFrameInfo.h | 1 +
1 files changed, 1 insertion(+)
Index: llvm/include/llvm/CodeGen/MachineFrameInfo.h
diff -u llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.15 llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.16
--- llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.15 Mon Apr 3 16:38:39 2006
+++ llvm/include/llvm/CodeGen/MachineFrameInfo.h Tue Apr 4 12:39:56 2006
@@ -225,6 +225,7 @@
///
int CreateVariableSizedObject() {
HasVarSizedObjects = true;
+ if (MaxAlignment < 1) MaxAlignment = 1;
Objects.push_back(StackObject(0, 1, -1));
return Objects.size()-NumFixedObjects-1;
}
More information about the llvm-commits
mailing list