Message ID | alpine.LSU.2.11.1405151427030.6093@zhemvz.fhfr.qr |
---|---|
State | New |
Headers | show |
Index: gcc/gimple-fold.c =================================================================== --- gcc/gimple-fold.c (revision 210414) +++ gcc/gimple-fold.c (working copy) @@ -1393,6 +1393,13 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, } } + /* Dispatch to pattern-based folding. + ??? Do this after the previous stuff as fold_stmt is used to make + stmts valid gimple again via maybe_fold_reference of ops. */ + if (!inplace + && gimple_match_and_simplify (gsi, NULL)) + changed = true; + return changed; }