From f408a6350f28490124ae042207027fa6599af29b Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 26 May 2017 07:14:52 +0000 Subject: [PATCH] re PR tree-optimization/80844 (OpenMP SIMD doesn't know how to efficiently zero a vector (its stores zeros and reloads)) 2017-05-26 Richard Biener PR tree-optimization/80844 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results. From-SVN: r248481 --- gcc/ChangeLog | 6 ++++++ gcc/tree-vectorizer.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b6eba86d38b..3505ba0576a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-05-26 Richard Biener + + PR tree-optimization/80844 + * tree-vectorizer.c (adjust_simduid_builtins): Propagate + results. + 2017-05-25 Sebastian Peryt * doc/md.texi (Machine Constraints): Update x86 family diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index f928dec3d96..1bef2e4f800 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -229,8 +229,11 @@ adjust_simduid_builtins (hash_table *htab) default: gcc_unreachable (); } - update_call_from_tree (&i, t); - gsi_next (&i); + tree lhs = gimple_call_lhs (stmt); + if (lhs) + replace_uses_by (lhs, t); + release_defs (stmt); + gsi_remove (&i, true); } } } -- 2.30.2