diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-26 11:06:14 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-26 11:06:14 +0000 |
commit | 9df082d2c7c220839c24ff209d133541effdfd63 (patch) | |
tree | ccd71ce2f7e56ea2ce3d68f4e1c18658cf1c2ab6 /gcc/tree-ssa-loop.c | |
parent | 258f96b3ac86192c14b0ca26503339952ab593a5 (diff) | |
download | ppe42-gcc-9df082d2c7c220839c24ff209d133541effdfd63.tar.gz ppe42-gcc-9df082d2c7c220839c24ff209d133541effdfd63.zip |
2013-02-26 Marek Polacek <polacek@redhat.com>
PR tree-optimization/56426
* tree-ssa-loop.c (tree_ssa_loop_init): Always call
scev_initialize.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196281 138bc75d-0d04-0410-961f-82ee72b054a4
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 f4a27046123..edc04eaa014 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; } |