]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cfgloop.h
return auto_vec from get_loop_hot_path
authorTrevor Saunders <tbsaunde@tbsaunde.org>
Mon, 7 Jun 2021 00:13:38 +0000 (20:13 -0400)
committerTrevor Saunders <tbsaunde@tbsaunde.org>
Thu, 17 Jun 2021 08:43:27 +0000 (04:43 -0400)
commita165040e11e340f6b397104f23717ef398408e67
tree06fc140b824f43bd1413ecc5d7cd175e056fa9b7
parent265af872a1f8d7ffda2c4056d1d80a3ec4fc8650
return auto_vec from get_loop_hot_path

This ensures callers take ownership of the returned vector.

Signed-off-by: Trevor Saunders <tbsaunde@tbsaunde.org>
gcc/ChangeLog:

* cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
* cfgloopanal.c (get_loop_hot_path): Likewise.
* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
gcc/cfgloop.h
gcc/cfgloopanal.c
gcc/tree-ssa-loop-ivcanon.c