Loop cloning: generalize recognized loop iteration patterns #60188
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone
Currently, loop cloning only recognizes simple "count up" loops, e.g.,
The condition can be
<
or<=
.x
can be constant or a loop-invariant variable.c
must be non-negative.Consider handling additional patterns, such as "count down" loops (e.g.,
for (i = a.Length - 1; i >=0; i--)
), or "nuint" cases (e.g.,for (nuint i = (nuint)(arrLen - 1); i != nuint.MaxValue; i--)
), and more.One place this was suggested: #60148 (comment)
category:cq
theme:loop-opt
skill-level:expert
cost:medium
impact:medium
The text was updated successfully, but these errors were encountered: