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
This commit is contained in:
Richard Biener 2014-12-09 09:13:18 +00:00 committed by Richard Biener
parent 6c77972738
commit ac6aeab4d7
2 changed files with 8 additions and 1 deletions

View 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

View 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,