AArch64: strengthen Darwin ABI alignment assumptions
authorTim Northover <tnorthover@apple.com>
Tue, 2 Dec 2014 23:53:43 +0000 (23:53 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 2 Dec 2014 23:53:43 +0000 (23:53 +0000)
commit4a8ac260cc6f810718fed8f7ed37632807f56c42
treebe4fa442b098fc6e74b54dca82fc747047eeb9fa
parent00973ce6839fe6ca039bfd0ce5082921588a1bd1
AArch64: strengthen Darwin ABI alignment assumptions

A global variable without an explicit alignment specified should be assumed to
be ABI-aligned according to its type, like on other platforms. This allows us
to use better memory operations when accessing it.

rdar://18533701

llvm-svn: 223180
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/test/CodeGen/AArch64/arm64-promote-const.ll
llvm/test/CodeGen/AArch64/global-merge-1.ll
llvm/test/CodeGen/AArch64/global-merge-2.ll