[PPC] Use alias symbols in address computation.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 29 May 2014 15:41:38 +0000 (15:41 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 29 May 2014 15:41:38 +0000 (15:41 +0000)
commit04902862a858ddd8c51c7b01c4fae3eff1e38f2a
tree65ee967241267bbc07c5de48ac211ccfd6fdec7d
parent1613650e90428d4f178913e067468643c3fba925
[PPC] Use alias symbols in address computation.

This seems to match what gcc does for ppc and what every other llvm
backend does.

This is a fixed version of r209638. The difference is to avoid any change
in behavior for functions. The logic for using constant pools for function
addresseses is spread over a few places and we have to keep them in sync.

llvm-svn: 209821
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/test/CodeGen/PowerPC/alias.ll [new file with mode: 0644]