aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2021-07-25 20:52:08 -0500
committerKewen Lin <linkw@linux.ibm.com>2021-08-05 03:44:20 -0500
commitd0a5624bb40470cb0ee03fe86530118ca6de0b3a (patch)
tree876feb4d59f64933f2dd59e335a6d85555fe50ab /gcc/tree-vectorizer.h
parent4e3129b0caceec008a940aa5eada253cd0f0b3ec (diff)
downloadgcc-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