Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.80 -> 1.81 --- Log message: - getTypeAlignmentShift() should be returning preferred alignment, not ABI alignment. - getPreferredAlignmentLog(): remove Double special case. --- Diffs of the changes: (+1 -3) TargetData.cpp | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-) Index: llvm/lib/Target/TargetData.cpp diff -u llvm/lib/Target/TargetData.cpp:1.80 llvm/lib/Target/TargetData.cpp:1.81 --- llvm/lib/Target/TargetData.cpp:1.80 Sat Jan 20 17:32:04 2007 +++ llvm/lib/Target/TargetData.cpp Mon Jan 22 17:08:19 2007 @@ -451,7 +451,7 @@ } unsigned char TargetData::getTypeAlignmentShift(const Type *Ty) const { - unsigned Align = getTypeAlignmentABI(Ty); + unsigned Align = getTypeAlignmentPref(Ty); assert(!(Align & (Align-1)) && "Alignment is not a power of two!"); return Log2_32(Align); } @@ -514,8 +514,6 @@ if (GV->hasInitializer()) { // Always round up alignment of global doubles to 8 bytes. - if (GV->getType()->getElementType() == Type::DoubleTy && Alignment < 3) - Alignment = 3; if (Alignment < 4) { // If the global is not external, see if it is large. If so, give it a // larger alignment. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits