diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-07-05 08:28:36 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2019-07-05 08:28:36 +0000 |
commit | ffdc40a90faec54d29af76b994c52790685a8e58 (patch) | |
tree | dfcc27a711785d7ec9afaeb709fc96338e4bb044 /gcc/tree-scalar-evolution.c | |
parent | 8d21ff6025652fa67085d94d5101cd699c57cf0b (diff) |
tree-cfg.c (gimple_make_forwarder_block): Propagate location info on phi nodes if possible.
* tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
phi nodes if possible.
* tree-scalar-evolution.c (final_value_replacement_loop): Propagate
location info on the newly created statement.
* tree-ssa-loop-manip.c (create_iv): Propagate location info on the
newly created increment if needed.
From-SVN: r273131
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r-- | gcc/tree-scalar-evolution.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index 81f70f193d9..b1c15dc11ba 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -3680,6 +3680,8 @@ final_value_replacement_loop (struct loop *loop) true, GSI_SAME_STMT); gassign *ass = gimple_build_assign (rslt, def); + gimple_set_location (ass, + gimple_phi_arg_location (phi, exit->dest_idx)); gsi_insert_before (&gsi, ass, GSI_SAME_STMT); if (dump_file) { |