diff options
Diffstat (limited to 'gcc/tree-ssa-loop.cc')
| -rw-r--r-- | gcc/tree-ssa-loop.cc | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/gcc/tree-ssa-loop.cc b/gcc/tree-ssa-loop.cc index 5629524..dc4b560 100644 --- a/gcc/tree-ssa-loop.cc +++ b/gcc/tree-ssa-loop.cc @@ -28,6 +28,7 @@ along with GCC; see the file COPYING3.  If not see  #include "tm_p.h"  #include "fold-const.h"  #include "gimple-iterator.h" +#include "gimple-range.h"  #include "tree-ssa-loop-ivopts.h"  #include "tree-ssa-loop-manip.h"  #include "tree-ssa-loop-niter.h" @@ -404,11 +405,15 @@ pass_scev_cprop::execute (function *)  {    bool any = false; +  enable_ranger (cfun); +    /* Perform final value replacement in loops, in case the replacement       expressions are cheap.  */    for (auto loop : loops_list (cfun, LI_FROM_INNERMOST))      any |= final_value_replacement_loop (loop); +  disable_ranger (cfun); +    return any ? TODO_cleanup_cfg | TODO_update_ssa_only_virtuals : 0;  } | 
