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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs