http://llvm.org/bugs/show_bug.cgi?id=2218
Summary: memcpyopt fails to eliminate pointless memcpy's
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]
Created an attachment (id=1590)
--> (http://llvm.org/bugs/attachment.cgi?id=1590)
testcase .ll
Here's the testcase (also attached). %pointless could be
eliminated since no use is ever made of it except as a
memcpy target. %temporary could also be eliminated in
favour of passing %result directly to the @initialize call.
define void @f(i8* noalias sret %result) {
entry:
%temporary = alloca i8 ; <i8*> [#uses=3]
%pointless = alloca i8 ; <i8*> [#uses=1]
call void @initialize( i8* noalias sret %temporary )
call void @llvm.memcpy.i32( i8* %pointless, i8* %temporary, i32 1, i32
4 )
call void @llvm.memcpy.i32( i8* %result, i8* %temporary, i32 1, i32 4 )
ret void
}
declare void @initialize(i8* noalias sret )
declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind
--
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