re PR tree-optimization/80844 (OpenMP SIMD doesn't know how to efficiently zero a...
authorRichard Biener <rguenther@suse.de>
Fri, 26 May 2017 07:14:52 +0000 (07:14 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 26 May 2017 07:14:52 +0000 (07:14 +0000)
2017-05-26  Richard Biener  <rguenther@suse.de>

PR tree-optimization/80844
* tree-vectorizer.c (adjust_simduid_builtins): Propagate
results.

From-SVN: r248481

gcc/ChangeLog
gcc/tree-vectorizer.c

index b6eba86d38b76f13505994bb159e6aec527bc22a..3505ba0576a6c01bef785eb6320310c417c6b2c5 100644 (file)
@@ -1,3 +1,9 @@
+2017-05-26  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/80844
+       * tree-vectorizer.c (adjust_simduid_builtins): Propagate
+       results.
+
 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
 
        * doc/md.texi (Machine Constraints): Update x86 family
index f928dec3d9602a222b9721e779cd9e9411512fd8..1bef2e4f800a44bd4b836193a35396b06cb80541 100644 (file)
@@ -229,8 +229,11 @@ adjust_simduid_builtins (hash_table<simduid_to_vf> *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);
        }
     }
 }