diff options
author | Martin Jambor <mjambor@suse.cz> | 2022-12-14 19:01:11 +0100 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2022-12-14 19:08:58 +0100 |
commit | 0e9495303db062cf118869b7526132b5821833e9 (patch) | |
tree | d3b8e817445c867426a3af1017f24bac6c744103 /gcc/gcov.cc | |
parent | 6539bbc14836b8e0fa08944be2c069b58bed9455 (diff) | |
download | gcc-0e9495303db062cf118869b7526132b5821833e9.zip gcc-0e9495303db062cf118869b7526132b5821833e9.tar.gz gcc-0e9495303db062cf118869b7526132b5821833e9.tar.bz2 |
ipa-sra: Consider the first parameter of methods safe to dereference
Honza requested this after reviewing the patch that taught IPA-SRA
that REFERENCE_TYPEs are always non-NULL that the pass also handles
the first parameters of methods, this pointers, in the same way. So
this patch does that.
gcc/ChangeLog:
2022-12-14 Martin Jambor <mjambor@suse.cz>
* ipa-sra.cc (create_parameter_descriptors): Consider the first
parameter of a method safe to dereference.
gcc/testsuite/ChangeLog:
2022-12-14 Martin Jambor <mjambor@suse.cz>
* g++.dg/ipa/ipa-sra-6.C: New test.
Diffstat (limited to 'gcc/gcov.cc')
0 files changed, 0 insertions, 0 deletions