Fix missed IPA-CP on by-ref argument directly passed through (PR 93429)
authorFeng Xue <fxue@os.amperecomputing.com>
Fri, 24 Jan 2020 15:09:28 +0000 (23:09 +0800)
committerFeng Xue <fxue@os.amperecomputing.com>
Mon, 1 Jun 2020 06:10:04 +0000 (14:10 +0800)
commit32633ec815b4d741a9a4b1b75de235844f6d691c
treea4bef1e46c28cb3795065c55562f3534a956682b
parente7340ed74abf5f44b069210a9eb1283a2e515b15
Fix missed IPA-CP on by-ref argument directly passed through (PR 93429)

2020-06-01  Feng Xue  <fxue@os.amperecomputing.com>

gcc/
PR ipa/93429
* ipa-cp.c (propagate_aggs_across_jump_function): Check aggregate
lattice for simple pass-through by-ref argument.

gcc/testsuite/
PR ipa/93429
* gcc.dg/ipa/ipcp-agg-8.c: Change dump string.
* gcc.dg/ipa/ipcp-agg-13.c: New test.
gcc/ipa-cp.c
gcc/testsuite/gcc.dg/ipa/ipcp-agg-13.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ipa/ipcp-agg-8.c