[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Apr 3 12:29:02 PDT 2006



Changes in directory llvm/lib/Target:

TargetData.cpp updated: 1.59 -> 1.60
---
Log message:

Align vectors to the size in bytes, not bits.


---
Diffs of the changes:  (+1 -1)

 TargetData.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.59 llvm/lib/Target/TargetData.cpp:1.60
--- llvm/lib/Target/TargetData.cpp:1.59	Fri Mar 31 16:33:42 2006
+++ llvm/lib/Target/TargetData.cpp	Mon Apr  3 14:28:50 2006
@@ -217,7 +217,7 @@
     Size = AlignedSize*PTy->getNumElements();
     // FIXME: The alignments of specific packed types are target dependent.
     // For now, just set it to be equal to Size.
-    Alignment = Size;
+    Alignment = (Size+7)/8;
     return;
   }
   case Type::StructTyID: {






More information about the llvm-commits mailing list