[vm] Inlining heuristics should take into account instruction sizes #56902
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
P3
A lower priority bug or feature request
triaged
Issue has been triaged by sub team
type-performance
Issue relates to performance or code size
Not all instructions at the inlining phase result in the same number of bytes of code.
Inlining heuristics should do a better job of predicting code size.
In particlar,
GenericCheckBounds
annotated withpragma('vm:unsafe:no-bounds-checks')
generates no code.length()
input toGenericCheckBounds
annotated withpragma('vm:unsafe:no-bounds-checks')
often becomes dead after the check is removed.LoadStaticField
is 3-4x larger withCallsInitializer
The text was updated successfully, but these errors were encountered: