diff options
author | Christian Bruel <christian.bruel@st.com> | 2007-08-22 16:38:16 +0200 |
---|---|---|
committer | Christian Bruel <chrbr@gcc.gnu.org> | 2007-08-22 16:38:16 +0200 |
commit | 81d2fb0294c4804ec559bb6f796fb8c79bea06a2 (patch) | |
tree | e4a372adecd095b7b82017b726220ef5440be287 /gcc/simplify-rtx.c | |
parent | fcdb5d68deffd7e82c3362e210e64dec78a66d62 (diff) | |
download | gcc-81d2fb0294c4804ec559bb6f796fb8c79bea06a2.zip gcc-81d2fb0294c4804ec559bb6f796fb8c79bea06a2.tar.gz gcc-81d2fb0294c4804ec559bb6f796fb8c79bea06a2.tar.bz2 |
fixed -ffinite-math-only A-A missing optimisation
Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r127705
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 1acb34c..d9cf023 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -1769,14 +1769,10 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode, case MINUS: /* We can't assume x-x is 0 even with non-IEEE floating point, but since it is zero except in very strange circumstances, we - will treat it as zero with -funsafe-math-optimizations and - -ffinite-math-only. */ + will treat it as zero with -ffinite-math-only. */ if (rtx_equal_p (trueop0, trueop1) && ! side_effects_p (op0) - && (! FLOAT_MODE_P (mode) - || (flag_unsafe_math_optimizations - && !HONOR_NANS (mode) - && !HONOR_INFINITIES (mode)))) + && (!FLOAT_MODE_P (mode) || !HONOR_NANS (mode))) return CONST0_RTX (mode); /* Change subtraction from zero into negation. (0 - x) is the |