]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid redundant get_loop_body calls in IVOPTs
authorRichard Biener <rguenther@suse.de>
Tue, 23 Nov 2021 12:51:10 +0000 (13:51 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 24 Nov 2021 08:03:05 +0000 (09:03 +0100)
commit52554dde7bf625c66192504cef01890bacc79694
tree77d7b3f0a60ff83f9aac010747c2f496d5551c2c
parent755c2e7d71cbab89b2bd1d787db46428a604efb2
Avoid redundant get_loop_body calls in IVOPTs

This removes redundant get_loop_body calls in IVOPTs by passing
around the body we're gathering early.

2021-11-23  Richard Biener  <rguenther@suse.de>

* tree-ssa-loop-ivopts.c (find_givs): Take loop body as
argument instead of re-computing it.
(find_interesting_uses): Likewise.
(find_induction_variables): Pass through loop body.
(tree_ssa_iv_optimize_loop): Pass down loop body.
gcc/tree-ssa-loop-ivopts.c