summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-12-02 23:53:43 +0000
committerTim Northover <tnorthover@apple.com>2014-12-02 23:53:43 +0000
commit4a8ac260cc6f810718fed8f7ed37632807f56c42 (patch)
treebe4fa442b098fc6e74b54dca82fc747047eeb9fa /llvm/lib
parent00973ce6839fe6ca039bfd0ce5082921588a1bd1 (diff)
downloadbcm5719-llvm-4a8ac260cc6f810718fed8f7ed37632807f56c42.tar.gz
bcm5719-llvm-4a8ac260cc6f810718fed8f7ed37632807f56c42.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
index 4456d2ac2c9..bb2e1e2b31b 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -615,7 +615,7 @@ bool AArch64DAGToDAGISel::SelectAddrModeIndexed(SDValue N, unsigned Size,
unsigned Alignment = GV->getAlignment();
const DataLayout *DL = TLI->getDataLayout();
Type *Ty = GV->getType()->getElementType();
- if (Alignment == 0 && Ty->isSized() && !Subtarget->isTargetDarwin())
+ if (Alignment == 0 && Ty->isSized())
Alignment = DL->getABITypeAlignment(Ty);
if (Alignment >= Size)
OpenPOWER on IntegriCloud