]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/51879 (Missed tail merging with non-const/pure calls)
authorTom de Vries <tom@codesourcery.com>
Fri, 27 Apr 2012 06:12:49 +0000 (06:12 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 27 Apr 2012 06:12:49 +0000 (06:12 +0000)
commit0011592137c4994dab5219e04b619e4d7f907851
tree32d5a292be572938e2863ca0e7b28ffebd4f377e
parentc9dd1d39400fb807be9bf615d2b257189a1e83e5
re PR tree-optimization/51879 (Missed tail merging with non-const/pure calls)

2012-04-27  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/51879
* tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
* tree-ssa-sccvn.c (mark_use_processed): New function, factored out
of ...
(defs_to_varying): ... here.  Don't set use_processed.
(visit_reference_op_call): Handle gimple_vdef.
Handle case that lhs is NULL_TREE.
(visit_use): Use mark_use_processed.  Handle calls with side-effect
using visit_reference_op_call.

From-SVN: r186894
gcc/ChangeLog
gcc/tree-ssa-sccvn.c
gcc/tree-ssa-sccvn.h