gcc/ChangeLog:
2021-11-25 Jan Hubicka <hubicka@ucw.cz>
* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not check
gimple_static_chain.
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