[LLVMbugs] [Bug 2782] New: Aliases should be forwarded if possible
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Sep 9 05:32:24 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2782
Summary: Aliases should be forwarded if possible
Product: new-bugs
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu
The following testcase
@A = alias void ()* @F ; <void ()*> [#uses=1]
declare void @F()
define void @C() {
call void @A( )
ret void
}
could (and should) be turned into
@A = alias void ()* @F ; <void ()*> [#uses=1]
declare void @F()
define void @C() {
call void @F( )
ret void
}
where the call is now a direct call to F.
(This is only correct if the alias does not
have weak linkage or similar). Turning
indirect calls into direct calls opens up
new optimization opportunities.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list