-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closed
Labels
Description
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