On Thu, 27 Aug 2026 19:23:12 GMT, Vladimir Kozlov <[email protected]> wrote:
> @bulasevich do you know why `replace_parallel_iv()` does not work for your
> case?
@vnkozlov Thanks a lot for the hint - it turned out to be the right direction.
I managed to fit my case into replace_parallel_iv, and it looks much better
this way. I still need some time for debugging and testing before I update the
PR.
The reason replace_parallel_iv did not fire is the shape of the graph. In my
case the second index does not step on its own - it holds a previous the value
of the trip counter:
PARALLEL vs PREVIOUS:
int a = 5; for (int iv = 0; iv < limit; iv++) { use(a); a += 3; }
int prev = -1; for (int iv = 0; iv < limit; iv++) { use(prev); prev = iv; }
-------------
PR Comment: https://git.openjdk.org/jdk/pull/32549#issuecomment-5518905452