If the target of an alias has internal linkage, then the
authorDuncan Sands <baldrick@free.fr>
Sun, 15 Feb 2009 09:56:08 +0000 (09:56 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 15 Feb 2009 09:56:08 +0000 (09:56 +0000)
commit4782b305c2ccc2b2e5a4cad65d7ffd15395d0727
treec9e51598d061acb8b270194c8b42c6bbff341feb
parentb599979ab591a6f4557337a4190153094725ef45
If the target of an alias has internal linkage, then the
alias can be morphed into the target.  Implement this
transform, and fix a crash in the existing transform at
the same time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64583 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll [new file with mode: 0644]
test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll [new file with mode: 0644]