JIT: Reconsider block weight propagation in loop cloning #103001
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone
Part of #93020. As mentioned in #102897, the logic in
Compiler::optCloneLoops
for propagating block weights is probably wrong when we have weights derived from PGO data -- in particular, we shouldn't need to scale weights based on the loop's depth. Doing so likely breaks block weight consistency (which we aren't checking just yet this late in the JIT's phases, hence the lack of assert failures).The text was updated successfully, but these errors were encountered: