diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2021-07-25 20:52:08 -0500 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2021-08-05 03:44:20 -0500 |
commit | d0a5624bb40470cb0ee03fe86530118ca6de0b3a (patch) | |
tree | 876feb4d59f64933f2dd59e335a6d85555fe50ab /gcc/tree-vectorizer.h | |
parent | 4e3129b0caceec008a940aa5eada253cd0f0b3ec (diff) | |
download | gcc-d0a5624bb40470cb0ee03fe86530118ca6de0b3a.zip gcc-d0a5624bb40470cb0ee03fe86530118ca6de0b3a.tar.gz gcc-d0a5624bb40470cb0ee03fe86530118ca6de0b3a.tar.bz2 |
cfgloop: Make loops_list support an optional loop_p root
This patch follows Richi's suggestion to add one optional
argument class loop* root to loops_list's CTOR, it can
provide the ability to construct a visiting list starting
from the given class loop* ROOT rather than the default
tree_root of loops_for_fn (FN), for visiting a subset of
the loop tree.
It unifies all orders of walkings into walk_loop_tree, but
it still uses linear search for LI_ONLY_INNERMOST when
looking at the whole loop tree since it has a more stable
bound.
gcc/ChangeLog:
* cfgloop.h (loops_list::loops_list): Add one optional argument
root and adjust accordingly, update loop tree walking and factor
out to ...
* cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions