Mercurial > hg > CbC > CbC_gcc
diff gcc/loop-init.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/loop-init.c Thu Oct 25 08:08:40 2018 +0900 +++ b/gcc/loop-init.c Thu Oct 25 10:21:07 2018 +0900 @@ -1,5 +1,5 @@ /* Loop optimizer initialization routines and RTL loop optimization passes. - Copyright (C) 2002-2017 Free Software Foundation, Inc. + Copyright (C) 2002-2018 Free Software Foundation, Inc. This file is part of GCC. @@ -361,8 +361,8 @@ && (flag_move_loop_invariants || flag_unswitch_loops || flag_unroll_loops - || (flag_branch_on_count_reg - && targetm.have_doloop_end ()))) + || (flag_branch_on_count_reg && targetm.have_doloop_end ()) + || cfun->has_unroll)) return true; else { @@ -560,7 +560,7 @@ /* opt_pass methods: */ virtual bool gate (function *) { - return (flag_unroll_loops || flag_unroll_all_loops); + return (flag_unroll_loops || flag_unroll_all_loops || cfun->has_unroll); } virtual unsigned int execute (function *);