diff options
author | Marek Polacek <polacek@redhat.com> | 2013-02-26 11:06:14 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2013-02-26 11:06:14 +0000 |
commit | f1ad33546dc659604fd842520a9b4600cb966c75 (patch) | |
tree | ccd71ce2f7e56ea2ce3d68f4e1c18658cf1c2ab6 /gcc/tree-ssa-loop.c | |
parent | a6af0f4274cb0a94ccbe49b0fccebe99c6fd23f1 (diff) | |
download | gcc-f1ad33546dc659604fd842520a9b4600cb966c75.zip gcc-f1ad33546dc659604fd842520a9b4600cb966c75.tar.gz gcc-f1ad33546dc659604fd842520a9b4600cb966c75.tar.bz2 |
re PR tree-optimization/56426 (Segmentation fault in find_var_scev_info, at tree-scalar-evolution.c:358)
2013-02-26 Marek Polacek <polacek@redhat.com>
PR tree-optimization/56426
* tree-ssa-loop.c (tree_ssa_loop_init): Always call
scev_initialize.
From-SVN: r196281
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r-- | gcc/tree-ssa-loop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index f4a2704..edc04ea 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -70,10 +70,13 @@ tree_ssa_loop_init (void) | LOOPS_HAVE_RECORDED_EXITS); rewrite_into_loop_closed_ssa (NULL, TODO_update_ssa); + /* We might discover new loops, e.g. when turning irreducible + regions into reducible. */ + scev_initialize (); + if (number_of_loops () <= 1) return 0; - scev_initialize (); return 0; } |