tree-cfg.h (should_remove_lhs_p): New predicate.
authorMarek Polacek <polacek@redhat.com>
Tue, 24 May 2016 13:34:37 +0000 (13:34 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 24 May 2016 13:34:37 +0000 (13:34 +0000)
commitabd3a68c1343af515a1f9b5e60f2b6ed94ee1d7a
tree5012ef61f6549f21b9eb5ed7fd9978b9a7d872f0
parent30fd2977745d53f282d1560212e3bea07943a937
tree-cfg.h (should_remove_lhs_p): New predicate.

* tree-cfg.h (should_remove_lhs_p): New predicate.
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
* gimplify.c (gimplify_modify_expr): Likewise.
* tree-cfg.c (verify_gimple_call): Likewise.
* tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
* gimple-fold.c: Include "tree-cfg.h".
(gimple_fold_call): Use should_remove_lhs_p.

From-SVN: r236637
gcc/ChangeLog
gcc/cgraph.c
gcc/gimple-fold.c
gcc/gimplify.c
gcc/tree-cfg.c
gcc/tree-cfg.h
gcc/tree-cfgcleanup.c