]> git.ipfire.org Git - thirdparty/gcc.git/commit
More last_stmt removal
authorRichard Biener <rguenther@suse.de>
Wed, 3 May 2023 11:24:45 +0000 (13:24 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 3 May 2023 12:58:56 +0000 (14:58 +0200)
commit64780df27b41d73689cd12dfda780d75fb80d743
treeb5583ad51806ff7f2d6c99109abe9b0719be4a86
parentcbf6c7a1d16490a1e63e9a5ce00e9a5c44c4c2f2
More last_stmt removal

This is the last set of changes removing calls to last_stmt in favor of
*gsi_last_bb where this is obviously correct.  As with the last changes
I tried to cleanup the code as far as dependences are concerned.

* tree-ssa-loop-split.cc (split_at_bb_p): Avoid last_stmt.
(patch_loop_exit): Likewise.
(connect_loops): Likewise.
(split_loop): Likewise.
(control_dep_semi_invariant_p): Likewise.
(do_split_loop_on_cond): Likewise.
(split_loop_on_cond): Likewise.
* tree-ssa-loop-unswitch.cc (find_unswitching_predicates_for_bb):
Likewise.
(simplify_loop_version): Likewise.
(evaluate_bbs): Likewise.
(find_loop_guard): Likewise.
(clean_up_after_unswitching): Likewise.
* tree-ssa-math-opts.cc (maybe_optimize_guarding_check):
Likewise.
(optimize_spaceship): Take a gcond * argument, avoid
last_stmt.
(math_opts_dom_walker::after_dom_children): Adjust call to
optimize_spaceship.
* tree-vrp.cc (maybe_set_nonzero_bits): Avoid last_stmt.
* value-pointer-equiv.cc (pointer_equiv_analyzer::visit_edge):
Likewise.
gcc/tree-ssa-loop-split.cc
gcc/tree-ssa-loop-unswitch.cc
gcc/tree-ssa-math-opts.cc
gcc/tree-vrp.cc
gcc/value-pointer-equiv.cc