Skip to content

Commit

Permalink
Document enable-inline-memcpy-ld-st flag (#565)
Browse files Browse the repository at this point in the history
Adds documentation of the optional inline-memcpy-ld-st flag.
  • Loading branch information
nasherm authored Nov 15, 2024
1 parent 17e7fcf commit 8ac25ff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/optimization-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ Additional optimization flags
=============================

## Additional loop unroll in the LTO pipeline
In some cases it is benefitial to perform an additional loop unroll pass so that extra information becomes available to later passes, e.g. SROA.
In some cases it is benefitial to perform an additional loop unroll pass so that extra information becomes available to later passes, e.g. SROA.
Use cases where this could be beneficial - multiple (N>=4) nested loops.

### Usage:
### Usage:
-Wl,-plugin-opt=-extra-LTO-loop-unroll=true/false

## Inline memcpy with LD/ST instructions
In some cases inlining of memcpy instructions performs best when using LD/ST instructions.

### Usage:
-mllvm -enable-inline-memcpy-ld-st

0 comments on commit 8ac25ff

Please sign in to comment.