aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-pre.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-06-23 13:51:34 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2008-06-23 13:51:34 +0200
commit53983ae9f340b1378e9aae93728c6bc2e62d4317 (patch)
treedd142a166873f8566f124516b14bfcaaa82144dc /gcc/tree-ssa-pre.c
parent836cd1da107038296d679483b78132775cca751c (diff)
downloadgcc-53983ae9f340b1378e9aae93728c6bc2e62d4317.zip
gcc-53983ae9f340b1378e9aae93728c6bc2e62d4317.tar.gz
gcc-53983ae9f340b1378e9aae93728c6bc2e62d4317.tar.bz2
re PR tree-optimization/36508 (ICE in compute_antic)
PR tree-optimization/36508 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to 499, don't check it at all in release compilers. * gcc.dg/pr36508.c: New test. From-SVN: r137036
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r--gcc/tree-ssa-pre.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index 3f3aae7..423afe0 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -2094,8 +2094,10 @@ compute_antic (void)
block->index));
}
}
+#ifdef ENABLE_CHECKING
/* Theoretically possible, but *highly* unlikely. */
- gcc_assert (num_iterations < 50);
+ gcc_assert (num_iterations < 500);
+#endif
}
statistics_histogram_event (cfun, "compute_antic iterations",
@@ -2124,8 +2126,10 @@ compute_antic (void)
block->index));
}
}
+#ifdef ENABLE_CHECKING
/* Theoretically possible, but *highly* unlikely. */
- gcc_assert (num_iterations < 50);
+ gcc_assert (num_iterations < 500);
+#endif
}
statistics_histogram_event (cfun, "compute_partial_antic iterations",
num_iterations);