[LLVMbugs] [Bug 2370] New: memmove(a,a,n) should be optimized out
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon May 26 07:57:25 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2370
Summary: memmove(a,a,n) should be optimized out
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Per description; testcase:
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i686-pc-linux-gnu"
define void @x(i8* %a) {
entry:
tail call void @llvm.memmove.i32( i8* %a, i8* %a, i32 100, i32 1 )
ret void
}
This function does nothing. Pretty simple optimization, although likely not
useful very often. Note that this transformation can be done slightly more
powerfully if alias analysis is available.
--
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