aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-math-opts.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d4321eb..26d9210 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-04 Jeff Law <law@redhat.com>
+
+ * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Remove
+ redundant test in assertion.
+
2018-01-04 Richard Sandiford <richard.sandiford@linaro.org>
* doc/rtl.texi: Document machine_mode wrapper classes.
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c
index 9098188..ea880c7 100644
--- a/gcc/tree-ssa-math-opts.c
+++ b/gcc/tree-ssa-math-opts.c
@@ -544,8 +544,7 @@ execute_cse_reciprocals_1 (gimple_stmt_iterator *def_gsi, tree def)
int square_recip_count = 0;
int sqrt_recip_count = 0;
- gcc_assert (FLOAT_TYPE_P (TREE_TYPE (def)) && is_gimple_reg (def)
- && TREE_CODE (def) == SSA_NAME);
+ gcc_assert (FLOAT_TYPE_P (TREE_TYPE (def)) && TREE_CODE (def) == SSA_NAME);
threshold = targetm.min_divisions_for_recip_mul (TYPE_MODE (TREE_TYPE (def)));
/* If DEF is a square (x * x), count the number of divisions by x.