diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-12-18 14:21:51 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-12-18 13:21:51 +0000 |
commit | c7ac9a0c7e3916f192ad41227e16238fd1fa2fbf (patch) | |
tree | e68d5f0c5a6cebf9e7164a3aff5b36fbb475d67b /gcc/ipa-param-manipulation.h | |
parent | 1ad431f95c200fe4d1eccab9cd5487087adc2bd8 (diff) |
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
Diffstat (limited to 'gcc/ipa-param-manipulation.h')
-rw-r--r-- | gcc/ipa-param-manipulation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ipa-param-manipulation.h b/gcc/ipa-param-manipulation.h index 8e9554563e4..5d7278e0d1b 100644 --- a/gcc/ipa-param-manipulation.h +++ b/gcc/ipa-param-manipulation.h @@ -258,6 +258,9 @@ public: void get_surviving_params (vec<bool> *surviving_params); /* Fill a vector with new indices of surviving original parameters. */ void get_updated_indices (vec<int> *new_indices); + /* Return the original index for the given new parameter index. Return a + negative number if not available. */ + int get_original_index (int newidx); void dump (FILE *f); void debug (); |