diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-27 16:42:38 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-27 16:42:38 +0000 |
commit | 74e261f8f105ddd2e827704436dce7b71197dd3b (patch) | |
tree | c54e2138854dce5eb8e290966cf9e8253508a581 /gcc/graphite.c | |
parent | 512d9edf00e8663acd7346a64c2f24a125cd47b1 (diff) | |
download | gcc-74e261f8f105ddd2e827704436dce7b71197dd3b.tar.gz |
2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/39308
* graphite.c (graphite_loop_normal_form): Do not call
number_of_iterations_exit from a gcc_assert.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144470 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r-- | gcc/graphite.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c index a4cbdfd75a8..69a72fc3c3d 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -2382,8 +2382,10 @@ graphite_loop_normal_form (loop_p loop) tree nit; gimple_seq stmts; edge exit = single_dom_exit (loop); + bool known_niter = number_of_iterations_exit (loop, exit, &niter, false); + + gcc_assert (known_niter); - gcc_assert (number_of_iterations_exit (loop, exit, &niter, false)); nit = force_gimple_operand (unshare_expr (niter.niter), &stmts, true, NULL_TREE); if (stmts) |