2016-09-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/77514
* tree-ssa-pre.c (create_expression_by_pieces): Optimize
search for folded stmt.
From-SVN: r240226
+2016-09-19 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/77514
+ * tree-ssa-pre.c (create_expression_by_pieces): Optimize
+ search for folded stmt.
+
2016-09-17 Jan Hubicka <hubicka@ucw.cz>
* passes.def (pass_early_thread_jumps): Schedule after forwprop.
}
/* Likewise if we simplified to sth not queued for insertion. */
bool found = false;
- gsi = gsi_start (forced_stmts);
- for (; !gsi_end_p (gsi); gsi_next (&gsi))
+ gsi = gsi_last (forced_stmts);
+ for (; !gsi_end_p (gsi); gsi_prev (&gsi))
{
gimple *stmt = gsi_stmt (gsi);
tree forcedname = gimple_get_lhs (stmt);
if (forcedname == folded)
- found = true;
+ {
+ found = true;
+ break;
+ }
}
if (! found)
{