Use find_loop_location from unrolling
commit8a6097c7425c4b6294e11dea062df7a883343f47
authorRichard Biener <rguenther@suse.de>
Tue, 15 Aug 2023 08:31:07 +0000 (15 10:31 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 15 Aug 2023 11:26:44 +0000 (15 13:26 +0200)
treeb37871f6b3edeb39d3fb8a1b3923924dd2bdb9b0
parenteef192b181b8777d708671e2541896e7e31293aa
Use find_loop_location from unrolling

The following uses the common find_loop_location as implemented
by the vectorizer to query a loop location also for unrolling.
That results in a more consistent reporting of locations.

* tree-ssa-loop-ivcanon.cc: Include tree-vectorizer.h
(canonicalize_loop_induction_variables): Use find_loop_location.
gcc/tree-ssa-loop-ivcanon.cc