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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27403 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-04-04 17:39:56 +00:00
parent e44be60ee9
commit 5cdf4bd55c

View File

@ -225,6 +225,7 @@ public:
///
int CreateVariableSizedObject() {
HasVarSizedObjects = true;
if (MaxAlignment < 1) MaxAlignment = 1;
Objects.push_back(StackObject(0, 1, -1));
return Objects.size()-NumFixedObjects-1;
}