Commit a601baa0 by Jakub Jelinek Committed by Jakub Jelinek

tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate IFN_GOMP_SIMD_LANE without lhs as useless.

	* tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
	IFN_GOMP_SIMD_LANE without lhs as useless.

From-SVN: r217584
parent 4c46b5f0
2014-11-14 Jakub Jelinek <jakub@redhat.com> 2014-11-14 Jakub Jelinek <jakub@redhat.com>
* tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
IFN_GOMP_SIMD_LANE without lhs as useless.
* ipa-pure-const.c (struct funct_state_d): Add can_free field. * ipa-pure-const.c (struct funct_state_d): Add can_free field.
(varying_state): Add true for can_free. (varying_state): Add true for can_free.
(check_call): For builtin or internal !nonfreeing_call_p set (check_call): For builtin or internal !nonfreeing_call_p set
...@@ -1402,6 +1402,11 @@ eliminate_unnecessary_stmts (void) ...@@ -1402,6 +1402,11 @@ eliminate_unnecessary_stmts (void)
maybe_clean_or_replace_eh_stmt (stmt, stmt); maybe_clean_or_replace_eh_stmt (stmt, stmt);
update_stmt (stmt); update_stmt (stmt);
release_ssa_name (name); release_ssa_name (name);
/* GOMP_SIMD_LANE without lhs is not needed. */
if (gimple_call_internal_p (stmt)
&& gimple_call_internal_fn (stmt) == IFN_GOMP_SIMD_LANE)
remove_dead_stmt (&gsi, bb);
} }
else if (gimple_call_internal_p (stmt)) else if (gimple_call_internal_p (stmt))
switch (gimple_call_internal_fn (stmt)) switch (gimple_call_internal_fn (stmt))
......
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