diff options
author | Jan Hubicka <jh@suse.cz> | 2021-11-25 14:42:47 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2021-11-25 14:44:04 +0100 |
commit | f4e470d44e8104bada6a95c12765f6ed8bd505e2 (patch) | |
tree | 3febc29aca2883f139a20211565009ccef18ed6b /gcc/tree-ssa-alias.c | |
parent | 4eda2eee0e1808b2b3a77afde3062e2cb9a24597 (diff) | |
download | gcc-f4e470d44e8104bada6a95c12765f6ed8bd505e2.zip gcc-f4e470d44e8104bada6a95c12765f6ed8bd505e2.tar.gz gcc-f4e470d44e8104bada6a95c12765f6ed8bd505e2.tar.bz2 |
Do not check gimple_static_cahin in ref_maybe_used_by_call_p_1
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.
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r-- | gcc/tree-ssa-alias.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index cd6a0b2..3c253e2 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 |