[llvm-commits] [llvm] r100161 - /llvm/trunk/lib/Target/TargetData.cpp

Dan Gohman gohman at apple.com
Thu Apr 1 17:46:07 PDT 2010


Author: djg
Date: Thu Apr  1 19:46:07 2010
New Revision: 100161

URL: http://llvm.org/viewvc/llvm-project?rev=100161&view=rev
Log:
Change variables which are exactly 16 bytes to be 16-byte-aligned too.
This fixes test/Transforms/GlobalOpt/gv-align.ll.

Modified:
    llvm/trunk/lib/Target/TargetData.cpp

Modified: llvm/trunk/lib/Target/TargetData.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetData.cpp?rev=100161&r1=100160&r2=100161&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetData.cpp (original)
+++ llvm/trunk/lib/Target/TargetData.cpp Thu Apr  1 19:46:07 2010
@@ -651,7 +651,7 @@
     if (Alignment < 16) {
       // If the global is not external, see if it is large.  If so, give it a
       // larger alignment.
-      if (getTypeSizeInBits(ElemType) > 128)
+      if (getTypeSizeInBits(ElemType) >= 128)
         Alignment = 16;    // 16-byte alignment.
     }
   }





More information about the llvm-commits mailing list