diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-08 15:09:25 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-08 15:09:25 +0000 |
commit | a3ef3b05d98b8d4d4903700b214f81c76a54ab8c (patch) | |
tree | 259baa0e14622f432ae3b12535a54efa40aabb63 /gcc/tree-tailcall.c | |
parent | 4f34fbd65fe7bcc36de45cf349c8ead0b93b7638 (diff) | |
download | gcc-a3ef3b05d98b8d4d4903700b214f81c76a54ab8c.tar.gz |
2007-09-08 Richard Guenther <rguenther@suse.de>
* tree-tailcall.c (find_tail_calls): If we don't have aliases
computed check stmt_ann->references_memory instead of counting
virtual operands.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128276 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-tailcall.c')
-rw-r--r-- | gcc/tree-tailcall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index 8651b60fc0d..bd3da886668 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -414,7 +414,8 @@ find_tail_calls (basic_block bb, struct tailcall **ret) /* If the statement has virtual or volatile operands, fail. */ ann = stmt_ann (stmt); if (!ZERO_SSA_OPERANDS (stmt, (SSA_OP_VUSE | SSA_OP_VIRTUAL_DEFS)) - || ann->has_volatile_ops) + || ann->has_volatile_ops + || (!gimple_aliases_computed_p (cfun) && ann->references_memory)) return; } |