[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


           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 =
target triple = "i686-pc-linux-gnu"

define void @x(i8* %a) {
        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