ipa-cp: Do not consider useless aggregate constants
authorMartin Jambor <mjambor@suse.cz>
Tue, 22 Nov 2022 17:22:03 +0000 (18:22 +0100)
committerMartin Jambor <mjambor@suse.cz>
Tue, 22 Nov 2022 17:29:06 +0000 (18:29 +0100)
commitfeeb0d68f1c7085199c3734e6517a3a4b58309ef
tree6757f67a12d3ba4459d41d8c46465feabcb4cb05
parentc826a041081bfe9171353159a41da29b4667cdc0
ipa-cp: Do not consider useless aggregate constants

When building vectors of known aggregate values, there is no point in
including those for parameters which are not used in any way
whatsoever.  This patch avoids that together with also other kinds of
constants.

gcc/ChangeLog:

2022-11-13  Martin Jambor  <mjambor@suse.cz>

* ipa-cp.cc (push_agg_values_from_edge): Do not consider constants
in unused aggregate parameters.
gcc/ipa-cp.cc