summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-02 00:46:07 +0000
committerDan Gohman <gohman@apple.com>2010-04-02 00:46:07 +0000
commit0e3218f6afa717668ed5e9031e6037f914d6ad73 (patch)
tree540654756286f3f282373185945b6339b6265248 /llvm/lib
parentc671347fcbd815b961b3b080aa8c53fb18071462 (diff)
downloadbcm5719-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.cpp2
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.
}
}
OpenPOWER on IntegriCloud