Allow constant global VAR_DECLs in constant jump functions
authorMartin Jambor <mjambor@suse.cz>
Wed, 18 May 2016 16:44:08 +0000 (18:44 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 18 May 2016 16:44:08 +0000 (18:44 +0200)
commit04643334f9769263db3a2f71956876886ef6cdd5
tree1276e4f905c6f856a6887cb3e4bc04c542e58392
parent776e4fe2cacf85c639bbf98ffc49da0ea4d996b2
Allow constant global VAR_DECLs in constant jump functions

2016-05-18  Martin Jambor  <mjambor@suse.cz>

PR ipa/69708
* ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
input for NOP_EXPR pass-through functions.
* ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
aggregate global constant VAR_DECLs in constant jump functions.

testsuite/
* gcc.dg/ipa/iinline-cstagg-2.c: New test.
* gcc.dg/ipa/ipcp-cstagg-5.c: Likewise.
* gcc.dg/ipa/ipcp-cstagg-6.c: Likewise.
* gcc.dg/ipa/ipcp-cstagg-7.c: Likewise.

From-SVN: r236418
gcc/ChangeLog
gcc/ipa-cp.c
gcc/ipa-prop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/iinline-cstagg-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/ipcp-cstagg-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/ipcp-cstagg-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/ipcp-cstagg-7.c [new file with mode: 0644]