aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-reassoc.c
diff options
context:
space:
mode:
authorKugan Vivekanandarajah <kuganv@linaro.org>2016-05-21 07:09:16 +0000
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>2016-05-21 07:09:16 +0000
commit88aea79f3cd5933088c99f0ebe3e34285c2b201d (patch)
treeb514b97ee781ef14c240695fa1205379e07d3a0e /gcc/tree-ssa-reassoc.c
parentd4f4b355bcddb625a3e4abec7befaf67309c9dbd (diff)
downloadgcc-88aea79f3cd5933088c99f0ebe3e34285c2b201d.zip
gcc-88aea79f3cd5933088c99f0ebe3e34285c2b201d.tar.gz
gcc-88aea79f3cd5933088c99f0ebe3e34285c2b201d.tar.bz2
re PR tree-optimization/71179 (ice fold_convert_loc, at fold-const.c:2360)
gcc/testsuite/ChangeLog: 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org> PR middle-end/71179 * gcc.dg/tree-ssa/pr71179.c: New test. gcc/ChangeLog: 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org> PR middle-end/71179 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float VECTOR type. From-SVN: r236554
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r--gcc/tree-ssa-reassoc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c
index 81b8977..3c718e9 100644
--- a/gcc/tree-ssa-reassoc.c
+++ b/gcc/tree-ssa-reassoc.c
@@ -1769,7 +1769,8 @@ transform_add_to_multiply (gimple *stmt, vec<operand_entry *> *ops)
bool changed = false;
if (!INTEGRAL_TYPE_P (TREE_TYPE ((*ops)[0]->op))
- && !flag_unsafe_math_optimizations)
+ && (!SCALAR_FLOAT_TYPE_P (TREE_TYPE ((*ops)[0]->op))
+ || !flag_unsafe_math_optimizations))
return false;
/* Look for repeated operands. */