]> gcc.gnu.org Git - gcc.git/commitdiff
re PR tree-optimization/64191 (indirect clobbers messes up dead code elimination...
authorRichard Biener <rguenther@suse.de>
Tue, 9 Dec 2014 09:13:18 +0000 (09:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 9 Dec 2014 09:13:18 +0000 (09:13 +0000)
2014-12-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/64191
* tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
not relevant (nor are their uses).

From-SVN: r218509

gcc/ChangeLog
gcc/tree-vect-stmts.c

index 5ca94246784ac7455e37317ec60ee9432826da41..4a5de9ee59ad3daec6cd7d4ed4c211fa80df0056 100644 (file)
@@ -1,3 +1,9 @@
+2014-12-09  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/64191
+       * tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
+       not relevant (nor are their uses).
+
 2014-12-09  Ilya Enkovich  <ilya.enkovich@intel.com>
 
        * lto/lto-partition.c (privatize_symbol_name): Correctly
index 6903f0a2e00abeb2335b520d8c55eec3da681816..52f9d31b5301306b607c205e894bb38299a3eed5 100644 (file)
@@ -340,7 +340,8 @@ vect_stmt_relevant_p (gimple stmt, loop_vec_info loop_vinfo,
 
   /* changing memory.  */
   if (gimple_code (stmt) != GIMPLE_PHI)
-    if (gimple_vdef (stmt))
+    if (gimple_vdef (stmt)
+       && !gimple_clobber_p (stmt))
       {
        if (dump_enabled_p ())
          dump_printf_loc (MSG_NOTE, vect_location,
This page took 0.1093 seconds and 5 git commands to generate.