Commit f30b3d28 by Prathamesh Kulkarni Committed by Prathamesh Kulkarni

tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce after local CSE.

2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

	* tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
	after local CSE.

From-SVN: r276417
parent 0b92cf30
2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
after local CSE.
2019-10-01 Jan Hubicka <hubicka@ucw.cz> 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
* doc/invoke.texi (early-inlining-insns-O2): Document. * doc/invoke.texi (early-inlining-insns-O2): Document.
......
...@@ -3060,9 +3060,6 @@ tree_if_conversion (class loop *loop, vec<gimple *> *preds) ...@@ -3060,9 +3060,6 @@ tree_if_conversion (class loop *loop, vec<gimple *> *preds)
on-the-fly. */ on-the-fly. */
combine_blocks (loop); combine_blocks (loop);
/* Delete dead predicate computations. */
ifcvt_local_dce (loop->header);
/* Perform local CSE, this esp. helps the vectorizer analysis if loads /* Perform local CSE, this esp. helps the vectorizer analysis if loads
and stores are involved. CSE only the loop body, not the entry and stores are involved. CSE only the loop body, not the entry
PHIs, those are to be kept in sync with the non-if-converted copy. PHIs, those are to be kept in sync with the non-if-converted copy.
...@@ -3071,6 +3068,9 @@ tree_if_conversion (class loop *loop, vec<gimple *> *preds) ...@@ -3071,6 +3068,9 @@ tree_if_conversion (class loop *loop, vec<gimple *> *preds)
bitmap_set_bit (exit_bbs, single_exit (loop)->dest->index); bitmap_set_bit (exit_bbs, single_exit (loop)->dest->index);
bitmap_set_bit (exit_bbs, loop->latch->index); bitmap_set_bit (exit_bbs, loop->latch->index);
todo |= do_rpo_vn (cfun, loop_preheader_edge (loop), exit_bbs); todo |= do_rpo_vn (cfun, loop_preheader_edge (loop), exit_bbs);
/* Delete dead predicate computations. */
ifcvt_local_dce (loop->header);
BITMAP_FREE (exit_bbs); BITMAP_FREE (exit_bbs);
todo |= TODO_cleanup_cfg; todo |= TODO_cleanup_cfg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment