[Bug c/40987] Wrong optimization with if-conversion

2009-08-07 Thread thomas at coware dot com
--- Comment #7 from thomas at coware dot com 2009-08-07 07:37 --- This is how function func looks after the if conversion (test.c.144r.ce1): (note 4 0 2 2 [bb 2] NOTE_INSN_BASIC_BLOCK) (insn 2 4 3 2 test.c:3 (set (reg/v:SI 63 [ arg ]) (mem/c/i:SI (reg/f:SI 16 argp) [0 arg+0 S4

[Bug c/40987] New: Wrong optimization with if-conversion

2009-08-06 Thread thomas at coware dot com
at coware dot com GCC build triplet: i686 GCC host triplet: i686 GCC target triplet: i686 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40987

[Bug c/40987] Wrong optimization with if-conversion

2009-08-06 Thread thomas at coware dot com
--- Comment #2 from thomas at coware dot com 2009-08-06 15:26 --- I can also build it like this and it fails: gcc test.c -O1 -fno-tree-dce -o test -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40987

[Bug c/40987] Wrong optimization with if-conversion

2009-08-06 Thread thomas at coware dot com
--- Comment #4 from thomas at coware dot com 2009-08-06 19:25 --- By the way, I see the same failure also with gcc 4.1.2 and 4.2 without any fno- options. I thought it would be a good idea to hunt the problem down to a single optimization mechanism, which seems to be if-conversion. I