mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
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
This commit is contained in:
parent
c9ae19e465
commit
04d52f8435
@ -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.
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user