aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-11-14 20:41:00 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2014-11-14 20:41:00 +0100
commita601baa0f795f5f3df9bfa326be8feb1d7e0c2dc (patch)
tree35d901bf887338d461c434fc17fdc6cff7b770df
parent4c46b5f0c213c750a752468338af54d249e1da03 (diff)
downloadgcc-a601baa0f795f5f3df9bfa326be8feb1d7e0c2dc.zip
gcc-a601baa0f795f5f3df9bfa326be8feb1d7e0c2dc.tar.gz
gcc-a601baa0f795f5f3df9bfa326be8feb1d7e0c2dc.tar.bz2
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
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/tree-ssa-dce.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c5ea481..161b2a0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
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.
(varying_state): Add true for can_free.
(check_call): For builtin or internal !nonfreeing_call_p set
diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c
index 6543dc7..3a23058 100644
--- a/gcc/tree-ssa-dce.c
+++ b/gcc/tree-ssa-dce.c
@@ -1402,6 +1402,11 @@ eliminate_unnecessary_stmts (void)
maybe_clean_or_replace_eh_stmt (stmt, stmt);
update_stmt (stmt);
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))
switch (gimple_call_internal_fn (stmt))