]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove pass counting in VRP.
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 28 Sep 2023 13:19:32 +0000 (09:19 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 3 Oct 2023 14:25:51 +0000 (10:25 -0400)
commit7eb5ce7f58ed4a48641e1786e4fdeb2f7fb8c5ff
treeb000199f69110fca1976fd99cfa3c1bc7b408b20
parentec8e86690ee572f03e6ffda288f2d28fd86f9d65
Remove pass counting in VRP.

Rather than using a pass count to decide which parameters are passed to
VRP, makemit explicit.

* passes.def (pass_vrp): Pass "final pass" flag as parameter.
* tree-vrp.cc (vrp_pass_num): Remove.
(pass_vrp::my_pass): Remove.
(pass_vrp::pass_vrp): Add warn_p as a parameter.
(pass_vrp::final_p): New.
(pass_vrp::set_pass_param): Set final_p param.
(pass_vrp::execute): Call execute_range_vrp with no conditions.
(make_pass_vrp): Pass additional parameter.
(make_pass_early_vrp): Ditto.
gcc/passes.def
gcc/tree-vrp.cc