diff options
author | Revital Eres <eres@il.ibm.com> | 2007-09-04 12:11:11 +0000 |
---|---|---|
committer | Revital Eres <revitale@gcc.gnu.org> | 2007-09-04 12:11:11 +0000 |
commit | a1a826110720eda37c73f829daa4ee243ee953f5 (patch) | |
tree | 67cecf461cc930540853bd8eb0d4f19b3b21b0ce /gcc/tree-ssa-reassoc.c | |
parent | cea79118fa00faf811626e67209ca666468bc76f (diff) | |
download | gcc-a1a826110720eda37c73f829daa4ee243ee953f5.zip gcc-a1a826110720eda37c73f829daa4ee243ee953f5.tar.gz gcc-a1a826110720eda37c73f829daa4ee243ee953f5.tar.bz2 |
Add new fp flags: -fassociative-math and -freciprocal-math
Co-Authored-By: R. Clint Whaley <whaley@cs.utsa.edu>
Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r128075
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r-- | gcc/tree-ssa-reassoc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 87db02f..f75437d 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -1244,14 +1244,14 @@ break_up_subtract_bb (basic_block bb) tree rhs = GIMPLE_STMT_OPERAND (stmt, 1); TREE_VISITED (stmt) = 0; - /* If unsafe math optimizations we can do reassociation for + /* If associative-math we can do reassociation for non-integral types. Or, we can do reassociation for non-saturating fixed-point types. */ if ((!INTEGRAL_TYPE_P (TREE_TYPE (lhs)) || !INTEGRAL_TYPE_P (TREE_TYPE (rhs))) && (!SCALAR_FLOAT_TYPE_P (TREE_TYPE (rhs)) || !SCALAR_FLOAT_TYPE_P (TREE_TYPE(lhs)) - || !flag_unsafe_math_optimizations) + || !flag_associative_math) && (!NON_SAT_FIXED_POINT_TYPE_P (TREE_TYPE (rhs)) || !NON_SAT_FIXED_POINT_TYPE_P (TREE_TYPE(lhs)))) continue; @@ -1294,14 +1294,14 @@ reassociate_bb (basic_block bb) if (TREE_VISITED (stmt)) continue; - /* If unsafe math optimizations we can do reassociation for + /* If associative-math we can do reassociation for non-integral types. Or, we can do reassociation for non-saturating fixed-point types. */ if ((!INTEGRAL_TYPE_P (TREE_TYPE (lhs)) || !INTEGRAL_TYPE_P (TREE_TYPE (rhs))) && (!SCALAR_FLOAT_TYPE_P (TREE_TYPE (rhs)) || !SCALAR_FLOAT_TYPE_P (TREE_TYPE(lhs)) - || !flag_unsafe_math_optimizations) + || !flag_associative_math) && (!NON_SAT_FIXED_POINT_TYPE_P (TREE_TYPE (rhs)) || !NON_SAT_FIXED_POINT_TYPE_P (TREE_TYPE(lhs)))) continue; |