Skip to content

Commit

Permalink
Optimize arraycopy with constant copy size
Browse files Browse the repository at this point in the history
Optimize arraycopy sequence if copy size is constant
and less than or equal to 64 bytes. This feature can
be disabled by env variable
TR_DisableArrayCopyInlineSmallSizeConstantCopySize.

Create generateMemoryCopyInstructions that loads and stores
memory based on specified register size. This method is used
by multiple arraycopy inline methods to reduce the repetition
of the same code.

Update generateArrayElement{Load|Store} to include
vector registers and instructions.

Signed-off-by: Annabelle Huo <[email protected]>
  • Loading branch information
a7ehuo committed Sep 11, 2024
1 parent 10fdf65 commit 2432b6f
Showing 1 changed file with 375 additions and 176 deletions.
Loading

0 comments on commit 2432b6f

Please sign in to comment.