]> gcc.gnu.org Git - gcc.git/commit
simplify-rtx.c (simplify_binary_operation): Remove fall throughs.
authorRoger Sayle <roger@eyesopen.com>
Mon, 12 Apr 2004 17:28:11 +0000 (17:28 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 12 Apr 2004 17:28:11 +0000 (17:28 +0000)
commit1e9b78b094572631b2abf3759e4752fe1862cc12
tree8639f921f4775bdce91bf3b169dbbbda56350d26
parente0fb1c5c37a5728cc2deb3a98df0c2bf3f1cd109
simplify-rtx.c (simplify_binary_operation): Remove fall throughs.

* simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
Remove fall throughs.  Convert 0/x and 0%x into x&0 when x has
side-effects.  Don't convert x/1.0 into x if we honor signaling NaNs.
Convert x/-1.0 into -x if we don't honor signaling NaNs.  Convert
x/-1 into -x.  Optimize x%1 into x&0 if x has side-effects.  Optimize
x%-1 into 0 (or x&0 if x has side-effects).

From-SVN: r80625
gcc/ChangeLog
gcc/simplify-rtx.c
This page took 0.062419 seconds and 5 git commands to generate.