Skip to content

Commit

Permalink
kbuild: Update Polly options
Browse files Browse the repository at this point in the history
  • Loading branch information
Username404-59 authored Dec 12, 2024
1 parent 5e41264 commit 4785dc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -812,10 +812,11 @@ KBUILD_RUSTFLAGS += -Cdebug-assertions=$(if $(CONFIG_RUST_DEBUG_ASSERTIONS),y,n)
KBUILD_RUSTFLAGS += -Coverflow-checks=$(if $(CONFIG_RUST_OVERFLOW_CHECKS),y,n)

ifdef CONFIG_POLLY_CLANG
KBUILD_CFLAGS += -mllvm -polly \
KBUILD_CFLAGS += -fplugin=LLVMPolly.so \
-mllvm -polly \
-mllvm -polly-ast-use-context \
-mllvm -polly-invariant-load-hoisting \
-mllvm -polly-opt-fusion=max \
-mllvm -polly-loopfusion-greedy \
-mllvm -polly-run-inliner \
-mllvm -polly-vectorizer=stripmine
# Polly may optimise loops with dead paths beyound what the linker
Expand Down

0 comments on commit 4785dc8

Please sign in to comment.