[tail-merge] Fix side-effect test in stmt_local_def
authorTom de Vries <tdevries@suse.de>
Thu, 21 Jun 2018 12:44:38 +0000 (12:44 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 21 Jun 2018 12:44:38 +0000 (12:44 +0000)
commit494e75321f6ce62918be661ef6b38c5888f0acaf
treec363c86b863b7d2748adf44928a3d1c67fdfec12
parent8732dd82418090d9bb0f6279d0e5a5af52266d6b
[tail-merge] Fix side-effect test in stmt_local_def

2018-06-21  Tom de Vries  <tdevries@suse.de>

PR tree-optimization/85859
* tree-ssa-tail-merge.c (stmt_local_def): Copy gimple_is_call
test with comment from bb_no_side_effects_p.

* gcc.dg/pr85859.c: New test.

From-SVN: r261844
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr85859.c [new file with mode: 0644]
gcc/tree-ssa-tail-merge.c