Skip to content

Commit

Permalink
x86: 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 19, 2024
1 parent 10fdf65 commit 24c7d3f
Showing 1 changed file with 379 additions and 179 deletions.
Loading

0 comments on commit 24c7d3f

Please sign in to comment.