From 9c2cf65b0b2ebba7f98e05097e4f56476a8c562a Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 12 Dec 2024 21:25:40 +0100 Subject: [PATCH 1/2] kbuild: Update old polly option Signed-off-by: Username404-59 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f1b13a9c3dccad..9c0f42471b398f 100644 --- a/Makefile +++ b/Makefile @@ -815,7 +815,7 @@ ifdef CONFIG_POLLY_CLANG KBUILD_CFLAGS += -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 From bc57da3637b78b0de25152ebf9ea27332a46a46e Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 12 Dec 2024 21:41:01 +0100 Subject: [PATCH 2/2] kbuild: load polly llvm plugin Signed-off-by: Username404-59 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9c0f42471b398f..9d14c9bf19aee1 100644 --- a/Makefile +++ b/Makefile @@ -812,7 +812,8 @@ 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-loopfusion-greedy \