Skip to content

Commit 4fbf466

Browse files
[OmaxLTO] Fix the flag to be supplied to the LTO plugin (#544)
The flag to add the extra loop unroll pass was previously provided to opt and was not actually working, as it's supposed to be provided to the LTO plugin.
1 parent 5993037 commit 4fbf466

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

OmaxLTO.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-flto=full \
22
-fvirtual-function-elimination \
33
-fwhole-program-vtables \
4-
-mllvm -extra-LTO-loop-unroll=true
4+
-Wl,-plugin-opt=-extra-LTO-loop-unroll=true
5+

docs/optimization-flags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ In some cases it is benefitial to perform an additional loop unroll pass so that
66
Use cases where this could be beneficial - multiple (N>=4) nested loops.
77

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

0 commit comments

Comments
 (0)