Remove first_pass_instance from pass_reassoc
authorTom de Vries <tom@codesourcery.com>
Mon, 16 Nov 2015 12:40:14 +0000 (12:40 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 16 Nov 2015 12:40:14 +0000 (12:40 +0000)
commit2162bfe15e549b125b8183fc5f3d6e1d05ef5c98
tree4bcf201bb0f232952e99fcfeec2d3501d35a5fa6
parentb0c77505ddbc1ebdecb71042e824fa4e36ba59a3
Remove first_pass_instance from pass_reassoc

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

* passes.def: Add arg to pass_reassoc pass instantiation.
* tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
(acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
of first_pass_instance.
(execute_reassoc): Add and handle insert_powi_p parameter.
(pass_reassoc::insert_powi_p): New private member.
(pass_reassoc::pass_reassoc): Initialize insert_powi_p.
(pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
(pass_reassoc::execute): Call execute_reassoc with extra arg.

From-SVN: r230416
gcc/ChangeLog
gcc/passes.def
gcc/tree-ssa-reassoc.c