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 | 0e3218f6afa717668ed5e9031e6037f914d6ad73 (patch) | |
| tree | 540654756286f3f282373185945b6339b6265248 /llvm/lib | |
| parent | c671347fcbd815b961b3b080aa8c53fb18071462 (diff) | |
| download | bcm5719-llvm-0e3218f6afa717668ed5e9031e6037f914d6ad73.tar.gz bcm5719-llvm-0e3218f6afa717668ed5e9031e6037f914d6ad73.zip | |
Change variables which are exactly 16 bytes to be 16-byte-aligned too.
This fixes test/Transforms/GlobalOpt/gv-align.ll.
llvm-svn: 100161
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index 643b3977461..652fc184bf3 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/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. } } |

