aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-12-09 09:13:18 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-12-09 09:13:18 +0000
commitac6aeab4d7f1f7f003474e325b1edf8ec52b18c0 (patch)
treef9d91fd494e95592fb00a2481e016a155f384a83 /gcc
parent6c77972738e8a6abac2b716a1b14c459b4c51240 (diff)
downloadgcc-ac6aeab4d7f1f7f003474e325b1edf8ec52b18c0.zip
gcc-ac6aeab4d7f1f7f003474e325b1edf8ec52b18c0.tar.gz
gcc-ac6aeab4d7f1f7f003474e325b1edf8ec52b18c0.tar.bz2
re PR tree-optimization/64191 (indirect clobbers messes up dead code elimination in loop calling dtor)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-vect-stmts.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5ca9424..4a5de9e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index 6903f0a..52f9d31 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -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,