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/fold-const.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/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 7718759..ed05f1f 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -10149,10 +10149,7 @@ fold_binary (enum tree_code code, tree type, tree op0, tree op1) Also note that operand_equal_p is always false if an operand is volatile. */ - if ((! FLOAT_TYPE_P (type) - || (flag_unsafe_math_optimizations - && !HONOR_NANS (TYPE_MODE (type)) - && !HONOR_INFINITIES (TYPE_MODE (type)))) + if ((!FLOAT_TYPE_P (type) || !HONOR_NANS (TYPE_MODE (type))) && operand_equal_p (arg0, arg1, 0)) return fold_convert (type, integer_zero_node); |