Special case aliases in GlobalValue::getAlignment.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 6 May 2014 16:48:58 +0000 (16:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 6 May 2014 16:48:58 +0000 (16:48 +0000)
commitb8894488415a81bb6bdaf9851acacc93a4e7cfe2
tree2492746ffe3883ef48a18427846a8634262594c2
parentbfc3f301b6a5390b990c4abb05d134ffe8bb59bb
Special case aliases in GlobalValue::getAlignment.

An alias has the address of what it points to, so it also has the same
alignment.

This allows a few optimizations to see past aliases for free.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208103 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/GlobalValue.h
lib/IR/Globals.cpp
lib/IR/Verifier.cpp
test/CodeGen/AArch64/global-alignment.ll