You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT: heuristics in optInvertWhileLoop may be overly conservative #6569
For example, the loop in method Fit from benchmark Puzzle gets rejected as too costly, causing loop hoisting etc. not to run on it, but it's a good candidate for such optimizations and Jit64 performed them on it:
There's already special consideration for loop conditions that involve shared static helpers; maybe similar treatment should be applied to loop conditions involving arrLen operators.
In this particular case, getting past the heuristic would enable hoisting the load of _p and the sign extension of i from the loop, but hoisting more of _p[i] (like the length of _p, the bounds-check, and/or the whole load) is blocked by #6554.
changed the title [-]JIT: heuristics in fgOptWhileLoop may be overly conservative[/-][+]JIT: heuristics in optInvertWhileLoop may be overly conservative[/+]on Mar 30, 2021
Activity
AndyAyersMS commentedon Jul 7, 2020
See also notes/prototype in #780. Tried extending the cloning to cover multiple statements, etc.
[-]JIT: heuristics in fgOptWhileLoop may be overly conservative[/-][+]JIT: heuristics in optInvertWhileLoop may be overly conservative[/+]BruceForstall commentedon Apr 24, 2021
This was fixed by #50982