ipa-param-manipulation.h (get_original_index): Declare.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 18 Dec 2019 13:21:51 +0000 (14:21 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 18 Dec 2019 13:21:51 +0000 (13:21 +0000)
commitc7ac9a0c7e3916f192ad41227e16238fd1fa2fbf
treee68d5f0c5a6cebf9e7164a3aff5b36fbb475d67b
parent1ad431f95c200fe4d1eccab9cd5487087adc2bd8
ipa-param-manipulation.h (get_original_index): Declare.

* ipa-param-manipulation.h (get_original_index): Declare.
* ipa-param-manipulation.c (ipa_param_adjustments::get_original_index):
New member function.
* ipa-prop.c (ipcp_get_parm_bits): New function.
* ipa-prop.h (ipcp_get_parm_bits): Declare.
* tree-ssa-ccp.c: Include cgraph.h, alloc-pool.h, symbol-summary.h,
ipa-utils.h and ipa-prop.h
(get_default_value): Use ipcp_get_parm_bits.

* gcc.dg/ipa/ipa-bit-cp.c: New testcase.
* gcc.dg/ipa/ipa-bit-cp-1.c: New testcase.
* gcc.dg/ipa/ipa-bit-cp-2.c: New testcase.

Co-Authored-By: Martin Jambor <mjambor@suse.cz>
From-SVN: r279523
gcc/ChangeLog
gcc/ipa-param-manipulation.c
gcc/ipa-param-manipulation.h
gcc/ipa-prop.c
gcc/ipa-prop.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-bit-cp-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/ipa-bit-cp-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/ipa-bit-cp.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c