Skip to content

[x86] unconditional branch not removed in codegen #1572

@lattner

Description

@lattner
Bugzilla Link 1200
Resolution FIXED
Resolved on Feb 22, 2010 12:42
Version trunk
OS All
Attachments testcase

Extended Description

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions