sdk icon indicating copy to clipboard operation
sdk copied to clipboard

[vm] Inlining heuristics should take into account instruction sizes

Open rakudrama opened this issue 1 year ago • 1 comments

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,

  • [ ] Redefinitions reference existing values, so potentially generate no code.
  • [x] GenericCheckBounds annotated with pragma('vm:unsafe:no-bounds-checks') generates no code.
  • [ ] The length() input to GenericCheckBounds annotated with pragma('vm:unsafe:no-bounds-checks') often becomes dead after the check is removed.

rakudrama avatar Oct 16 '24 02:10 rakudrama

//cc @alexmarkov

a-siva avatar Oct 16 '24 20:10 a-siva