From: Jan Hubicka Date: Thu, 25 Nov 2021 13:42:47 +0000 (+0100) Subject: Do not check gimple_static_cahin in ref_maybe_used_by_call_p_1 X-Git-Tag: basepoints/gcc-13~2792 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e470d44e8104bada6a95c12765f6ed8bd505e2;p=thirdparty%2Fgcc.git Do not check gimple_static_cahin in ref_maybe_used_by_call_p_1 gcc/ChangeLog: 2021-11-25 Jan Hubicka * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not check gimple_static_chain. --- diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index cd6a0b2f67ba..3c253e2843ff 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -2743,9 +2743,7 @@ ref_maybe_used_by_call_p_1 (gcall *call, ao_ref *ref, bool tbaa_p) unsigned i; int flags = gimple_call_flags (call); - /* Const functions without a static chain do not implicitly use memory. */ - if (!gimple_call_chain (call) - && (flags & (ECF_CONST|ECF_NOVOPS))) + if (flags & (ECF_CONST|ECF_NOVOPS)) goto process_args; /* A call that is not without side-effects might involve volatile