PR optimization/10817
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Nov 2003 13:56:42 +0000 (13:56 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Nov 2003 13:56:42 +0000 (13:56 +0000)
commit357b5a1fee37eb81e9891d85691309d338bb81d8
tree3b7c1888d9ed7fad3b4bf1b5208f5a4d7e6b11cf
parent13e2632334ae1b382f69349050259f3e34c87e2c
PR optimization/10817
* ifcvt.c (noce_emit_move_insn): Improve documentation comment.
(noce_try_move): New function to optimize an if-the-else into an
unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
(noce_process_if_block): Attempt simplification with noce_try_move.

* simplify-rtx.c (simplify_ternary_operation): Some minor fixes
and improvements to the optimizations of IF_THEN_ELSE expressions.
(simplify_subreg): Silence signed/unsigned comparison warning.

* gcc.c-torture/compile/20031102-1.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73200 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ifcvt.c
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20031102-1.c [new file with mode: 0644]