diff options
author | Jan Hubicka <jh@suse.cz> | 2020-11-29 16:31:47 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-11-29 16:31:47 +0100 |
commit | 01148fa656ba5a68bfe6d788c1a9bacd48ccc44f (patch) | |
tree | 5ff3387ac26156174fbf6833ecea43b774773879 /gcc/tree-ssa-structalias.c | |
parent | 3350e59f2985469b2472e4d9a6d387337da4519b (diff) | |
download | gcc-01148fa656ba5a68bfe6d788c1a9bacd48ccc44f.zip gcc-01148fa656ba5a68bfe6d788c1a9bacd48ccc44f.tar.gz gcc-01148fa656ba5a68bfe6d788c1a9bacd48ccc44f.tar.bz2 |
Skip EAF_UNUSED parameters in handle_pure_call
* tree-ssa-structalias.c (handle_pure_call): Skip EAF_UNUSED
parameters.
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 9f4de96..cf653be 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -4274,6 +4274,11 @@ handle_pure_call (gcall *stmt, vec<ce_s> *results) for (i = 0; i < gimple_call_num_args (stmt); ++i) { tree arg = gimple_call_arg (stmt, i); + int flags = gimple_call_arg_flags (stmt, i); + + /* If the argument is not used we can ignore it. */ + if (flags & EAF_UNUSED) + continue; if (!uses) { uses = get_call_use_vi (stmt); |