summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r--gcc/tree-ssa-loop-niter.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c
index 23b965aff33..7104e60cf95 100644
--- a/gcc/tree-ssa-loop-niter.c
+++ b/gcc/tree-ssa-loop-niter.c
@@ -3954,11 +3954,7 @@ loop_exits_before_overflow (tree base, tree step,
if (!CONVERT_EXPR_P (e) || !operand_equal_p (e, unsigned_base, 0))
continue;
e = TREE_OPERAND (e, 0);
- /* If E has an unsigned type, the operand equality test below
- would fail, but the equality test above would have already
- verified the equality, so we can proceed with it. */
- gcc_assert (TYPE_UNSIGNED (TREE_TYPE (e))
- || operand_equal_p (e, base, 0));
+ gcc_assert (operand_equal_p (e, base, 0));
if (tree_int_cst_sign_bit (step))
{
code = LT_EXPR;