This is correct, LoopUnrollAndJam can only jam a single loop per level.
Michael
Am Mo., 8. Juni 2020 um 06:08 Uhr schrieb Das, Dibyendu via llvm-dev
<llvm-dev at lists.llvm.org>:>
> Hi-
>
>
>
> I am looking to see whether UnJ can be applied to an outer loop with
multiple inner nested loops like the one below. It looks like only a single
inner loop is supported right now. Am I missing something ?
>
>
>
> -Thx
>
> Dibyendu
>
>
>
>
>
> #pragma allow_unroll_and_jam unroll_and_jam_count(4)
>
> for (int w = ws; w < we; w += wst) {
>
> (...)
>
> for (int d = ds ; (d < de); d += dst) {
>
> }
>
> (...)
>
> for (int d = ds; (d < de); d += dst) {
>
> }
>
> (...)
>
> }
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev