summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2018-01-04 18:54:02 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2018-01-04 18:54:02 +0000
commit56c4f422a7d03c4004acebe3224390ffbf364a95 (patch)
tree20da3a50985c9e5ab37b524122fe8bb8678b0a15
parent7bf985c6b16d27984f981fefe2e49c9cf2e6b57d (diff)
downloadgcc-56c4f422a7d03c4004acebe3224390ffbf364a95.tar.gz
* tree-ssa-math-opts.c (execute_cse_reciprocals_1): Remove
redundant test in assertion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256260 138bc75d-0d04-0410-961f-82ee72b054a4
-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 d4321eb0312..26d9210a1b3 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 9098188e988..ea880c7b1d8 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.