summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-10 00:37:39 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-10 00:37:39 +0000
commit1382992bbdaff4b5e426d77b731b0961ba5f6777 (patch)
tree44bd2d64a442165a5d4162e8caf3157b8f5557a6 /gcc/tree-ssa-loop-niter.c
parentd1ad4a2d62169f4b195a00efd68642a4a6d52d4a (diff)
downloadgcc-1382992bbdaff4b5e426d77b731b0961ba5f6777.tar.gz
Revert "[PR64164] Drop copyrename, use coalescible partition as base when optimizing."
This reverts commit c66acc7cedd89bfd22124caec44b8427c9082dac. Conflicts: gcc/ChangeLog gcc/testsuite/ChangeLog git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224310 138bc75d-0d04-0410-961f-82ee72b054a4
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;