Fix incorrect SLOC inherited by induction variable increment
commit89903c8b24c7883b4a400365706e7804298cc523
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 29 May 2023 07:48:14 +0000 (29 09:48 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 29 May 2023 09:13:42 +0000 (29 11:13 +0200)
tree03b1238bb1063a35173f62b36c41f261dfda3649
parent3fa303becdc877a77e67e04401a50246dd05bd81
Fix incorrect SLOC inherited by induction variable increment

This extends the condition to more cases involving debug instructions.

gcc/
* tree-ssa-loop-manip.cc (create_iv): Try harder to find a SLOC to
put onto the increment when it is inserted after the position.
gcc/tree-ssa-loop-manip.cc