------- Comment #4 from carrot at google dot com 2009-08-19 21:55 ------- (In reply to comment #2) > Why does the basic block reordering pass also not handle this? >
Basic block reordering is disabled with options -Os. The basic block reordering algorithm is for performance only, it usually increases code size. So it won't be called when do optimization for size. But for this specific case, the extra branch can be removed when I compile it with -O2. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41004