[LLVMbugs] [Bug 2169] New: anders-aa wrong result with memcpy
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Mar 21 13:43:32 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2169
Summary: anders-aa wrong result with memcpy
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: llvmbugs at cs.uiuc.edu
For the following testcase,
opt -anders-aa -gvn
results in %tmp being replaced with undef:
declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind
declare void @use(i8)
define void @f(i8* %x) {
entry:
%copy = alloca i8 ; <i8*> [#uses=6]
call void @llvm.memcpy.i32( i8* %copy, i8* %x, i32 1, i32 4 )
%tmp = load i8* %copy ; <i8> [#uses=1]
call void @use(i8 %tmp)
ret void
}
--
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