re PR tree-optimization/77514 (ICE in VN_INFO_GET, at tree-ssa-sccvn.c:406 w/ -O2 (and above))
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
This commit is contained in:
parent
cdf060f898
commit
ed4fd95729
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
|
@ -2881,13 +2881,16 @@ create_expression_by_pieces (basic_block block, pre_expr expr,
|
|||
}
|
||||
/* 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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue