]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/passes.def
Remove first_pass_instance from pass_ccp
authorTom de Vries <tom@codesourcery.com>
Mon, 16 Nov 2015 12:40:41 +0000 (12:40 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 16 Nov 2015 12:40:41 +0000 (12:40 +0000)
commitc06883ac2d1cc41a051a54141abff4deed429f35
tree20813276f7d4d2e3f8730db9827136142a62ec84
parent813ccd83aef21bfaee56ea3d84ce5bf6c60984f7
Remove first_pass_instance from pass_ccp

2015-11-16  Tom de Vries  <tom@codesourcery.com>

* passes.def: Add arg to pass_ccp pass instantiation.
* tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
instead of first_pass_instance.
(do_ssa_ccp): Add and handle param nonzero_p.
(pass_ccp::pass_ccp): Initialize nonzero_p.
(pass_ccp::set_pass_param): New member function.  Set nonzero_p.
(pass_ccp::execute): Call do_ssa_ccp with extra arg.
(pass_ccp::nonzero_p): New private member.

From-SVN: r230419
gcc/ChangeLog
gcc/passes.def
gcc/tree-ssa-ccp.c