[LLVMbugs] [Bug 10327] New: unnecessary mov

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 10 19:17:13 PDT 2011


           Summary: unnecessary mov
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu

We codegen

define void @zed(i8* %cx) nounwind uwtable ssp {
  tail call void @foo(i8* %cx) nounwind
  tail call void @bar(i8* %cx) nounwind
  ret void
declare void @foo(i8*)
declare void @bar(i8*)


    pushq    %rbx
    movq    %rdi, %rbx
    movq    %rbx, %rdi
    callq    __Z3fooPv
    movq    %rbx, %rdi
    popq    %rbx
    jmp    __Z3barPv

note the funny rdi -> rbx -> rdi moves.

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