projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ae19e
)
Change variables which are exactly 16 bytes to be 16-byte-aligned too.
author
Dan Gohman
<gohman@apple.com>
Fri, 2 Apr 2010 00:46:07 +0000
(
00:46
+0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 2 Apr 2010 00:46:07 +0000
(
00:46
+0000)
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
lib/Target/TargetData.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/TargetData.cpp
b/lib/Target/TargetData.cpp
index 643b3977461b3bccdd174d7053e5d7f4dcc65ada..652fc184bf35c221d38a4b93fea95aab8ba67b5f 100644
(file)
--- 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.
}
}