diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-02 00:46:07 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-02 00:46:07 +0000 |
commit | 04d52f8435e264a83ec42fa81d6211adbc964422 (patch) | |
tree | 2a7607a8e3ee1c8a55b9a974ed074496af2ee14f /lib/Target/TargetData.cpp | |
parent | c9ae19e46520c1051b828171205b379b5a0bb6ad (diff) |
Change variables which are exactly 16 bytes to be 16-byte-aligned too.
This fixes test/Transforms/GlobalOpt/gv-align.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 643b397746..652fc184bf 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -651,7 +651,7 @@ unsigned TargetData::getPreferredAlignment(const GlobalVariable *GV) const { 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. } } |