diff options
author | Richard Henderson <rth@redhat.com> | 2002-04-02 23:56:47 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-04-02 23:56:47 -0800 |
commit | 6584b4aa8bf0515432f520c3ac8379e3bd70e8d2 (patch) | |
tree | 20695b9c1c06a51bef949e2e27c2c1bc4213eb58 /gcc/toplev.c | |
parent | 0acf409fdc1266c03caf70c778e8a79ce2f59261 (diff) | |
download | gcc-6584b4aa8bf0515432f520c3ac8379e3bd70e8d2.zip gcc-6584b4aa8bf0515432f520c3ac8379e3bd70e8d2.tar.gz gcc-6584b4aa8bf0515432f520c3ac8379e3bd70e8d2.tar.bz2 |
re PR rtl-optimization/4311 (unrolling loops creates non-ending loop)
PR opt/4311
* loop.h (LOOP_FIRST_PASS): New.
* loop.c (strength_reduce): Mind it when deciding to unroll.
* toplev.c (rest_of_compilation): Set it.
From-SVN: r51798
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 2400959..9fa22fc 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2805,8 +2805,7 @@ rest_of_compilation (decl) cleanup_barriers (); /* We only want to perform unrolling once. */ - - loop_optimize (insns, rtl_dump_file, 0); + loop_optimize (insns, rtl_dump_file, LOOP_FIRST_PASS); /* The first call to loop_optimize makes some instructions trivially dead. We delete those instructions now in the |