[LLVMbugs] [Bug 1200] NEW: [x86] unconditional branch not removed in codegen

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 13 23:13:04 PST 2007


http://llvm.org/bugs/show_bug.cgi?id=1200

           Summary: [x86] unconditional branch not removed in codegen
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


The attached LLVM code has an uncond branch that isn't removed by branch folding:

_main_bb_2E_i9_2E_i_2E_i932_2E_ce:
        subl $28, %esp
        movl %esi, 24(%esp)
        movl %edi, 20(%esp)
        movl 36(%esp), %esi
        movl 32(%esp), %eax
        jmp LBB1_6      #bb.i9.i.i932.ce
...
LBB1_6: #bb.i9.i.i932.ce
        movl (%eax), %edi
        movl L_outfile$non_lazy_ptr, %eax
        movl (%eax), %eax

The entry block has a single successor, and LBB1_6 has a single predecessor, so branch folding should 
merge them.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list