Cloning to allow for a loop with a class init check, and one where the class init check is removed, could be profitable.
AndyAyersMS writes:
I wonder if we should consider using this check as a gating condition for loop cloning... Also may factor into the do-while transformation heuristics, these try to account for the potential "savings" from hoisting the class init call check out of the loop.
So for some subset of loops we would produce a loop that knows classes are inited and does no checks, and another that will conditionally check within the loop body as above.
Related: #47901
category:cq
theme:loop-opt
skill-level:expert
cost:medium
impact:medium
Cloning to allow for a loop with a class init check, and one where the class init check is removed, could be profitable.
AndyAyersMS writes:
Related: #47901
category:cq
theme:loop-opt
skill-level:expert
cost:medium
impact:medium