Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 575 Bytes

optimization-flags.md

File metadata and controls

15 lines (11 loc) · 575 Bytes

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. Use cases where this could be beneficial - multiple (N>=4) nested loops.

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