[llvm-commits] [llvm] r64773 - /llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Duncan Sands
baldrick at free.fr
Tue Feb 17 09:50:05 PST 2009
Author: baldrick
Date: Tue Feb 17 11:50:04 2009
New Revision: 64773
URL: http://llvm.org/viewvc/llvm-project?rev=64773&view=rev
Log:
This transform also applies to private linkage.
Modified:
llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Modified: llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp?rev=64773&r1=64772&r2=64773&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp Tue Feb 17 11:50:04 2009
@@ -2398,11 +2398,11 @@
// @a = alias ... @f
// into:
// define ... @a(...)
- if (!Target->hasInternalLinkage())
+ if (!Target->hasLocalLinkage())
continue;
// The transform is only useful if the alias does not have internal linkage.
- if (J->hasInternalLinkage())
+ if (J->hasLocalLinkage())
continue;
// Do not perform the transform if multiple aliases potentially target the
More information about the llvm-commits
mailing list