diff options
| author | toon <toon@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-18 05:26:38 +0000 |
|---|---|---|
| committer | toon <toon@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-18 05:26:38 +0000 |
| commit | a0fd8a81277015c50c3af05945016ba784458e4a (patch) | |
| tree | 52785302a0f2c7c6c298e0451dbc15c422e5d962 | |
| parent | 70e83e5b945dd684ee4c617a8f9e69697ac0c535 (diff) | |
| download | ppe42-gcc-a0fd8a81277015c50c3af05945016ba784458e4a.tar.gz ppe42-gcc-a0fd8a81277015c50c3af05945016ba784458e4a.zip | |
2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
* combine.c (combine_simplify_rtx): DIV can be treated
associatively for floats if unsafe math optimisations are enabled.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44097 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/combine.c | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 19e715e0583..8beb99b68e3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl> + + * combine.c (combine_simplify_rtx): DIV can be treated + associatively for floats if unsafe math optimisations are enabled. + 2001-07-17 Richard Henderson <rth@redhat.com> * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS. diff --git a/gcc/combine.c b/gcc/combine.c index f8394e6c573..b22dd9bb41b 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3722,10 +3722,10 @@ combine_simplify_rtx (x, op0_mode, last, in_dest) /* If CODE is an associative operation not otherwise handled, see if we can associate some operands. This can win if they are constants or if they are logically related (i.e. (a & b) & a). */ - if ((code == PLUS || code == MINUS - || code == MULT || code == AND || code == IOR || code == XOR + if ((code == PLUS || code == MINUS || code == MULT || code == DIV + || code == AND || code == IOR || code == XOR || code == SMAX || code == SMIN || code == UMAX || code == UMIN) - && (INTEGRAL_MODE_P (mode) + && ((INTEGRAL_MODE_P (mode) && code != DIV) || (flag_unsafe_math_optimizations && FLOAT_MODE_P (mode)))) { if (GET_CODE (XEXP (x, 0)) == code) @@ -3745,7 +3745,6 @@ combine_simplify_rtx (x, op0_mode, last, in_dest) } inner = simplify_binary_operation (code == MINUS ? PLUS : code == DIV ? MULT - : code == UDIV ? MULT : code, mode, inner_op0, inner_op1); |

