ipa: Don't disable function parameter analysis for fat LTO
Update analyze_parms not to disable function parameter analysis for -ffat-lto-objects. Tested on x86-64, there are no differences in zstd with "-O2 -flto=auto" -g "vs -O2 -flto=auto -g -ffat-lto-objects". PR ipa/116410 * ipa-modref.cc (analyze_parms): Always analyze function parameter for LTO. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
parent
4371f65628
commit
2f1689ea8e
1 changed files with 2 additions and 2 deletions
|
@ -2975,7 +2975,7 @@ analyze_parms (modref_summary *summary, modref_summary_lto *summary_lto,
|
|||
summary->arg_flags.safe_grow_cleared (count, true);
|
||||
summary->arg_flags[parm_index] = EAF_UNUSED;
|
||||
}
|
||||
else if (summary_lto)
|
||||
if (summary_lto)
|
||||
{
|
||||
if (parm_index >= summary_lto->arg_flags.length ())
|
||||
summary_lto->arg_flags.safe_grow_cleared (count, true);
|
||||
|
@ -3034,7 +3034,7 @@ analyze_parms (modref_summary *summary, modref_summary_lto *summary_lto,
|
|||
summary->arg_flags.safe_grow_cleared (count, true);
|
||||
summary->arg_flags[parm_index] = flags;
|
||||
}
|
||||
else if (summary_lto)
|
||||
if (summary_lto)
|
||||
{
|
||||
if (parm_index >= summary_lto->arg_flags.length ())
|
||||
summary_lto->arg_flags.safe_grow_cleared (count, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue