On 12/12/2016 12:20 PM, Jakub Jelinek wrote:
Hi!
The strength reduction has code to emit stuff before or after the last insn
in a bb, but uses a wrong predicate to decide where to put it, is_ctrl_stmt
covers only a subset of statements that must end a bb.
Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
trunk?
2016-12-12 Jakub Jelinek <ja...@redhat.com>
PR tree-optimization/78777
* gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
* g++.dg/torture/pr78777.C: New test.
OK.
jeff