[llvm-bugs] [Bug 46578] New: poll crashes with "-mllvm -polly-vectorizer=stripmine" running pass 'Polly - Optimize schedule of SCoP'

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 3 06:29:51 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46578

            Bug ID: 46578
           Summary: poll crashes with "-mllvm -polly-vectorizer=stripmine"
                    running pass 'Polly - Optimize schedule of SCoP'
           Product: Polly
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Optimizer
          Assignee: polly-dev at googlegroups.com
          Reporter: kaban at foxmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 23676
  --> https://bugs.llvm.org/attachment.cgi?id=23676&action=edit
associated run script

i try to Enable LLVM Polly optimizations in kernel
(https://github.com/OPPO9008/android_kernel_xiaomi_rosy p-3.18-caf )
warning: Unknown fusion strategy. Falling back to maximal fusion.

Steps to Reproduce
1) add this change 

--- a/Makefile
+++ b/Makefile
@@ -623,6 +623,17 @@ KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
 KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
 KBUILD_CFLAGS += $(call cc-option, -no-integrated-as)
 KBUILD_AFLAGS += $(call cc-option, -no-integrated-as)
+#尝试优化
+KBUILD_AFLAGS += -mtune=cortex-a53 -mcpu=cortex-a53
+KBUILD_CFLAGS += $(call cc-option, -mllvm -polly) \
+                  $(call cc-option, -mllvm -polly-run-dce) \
+                  $(call cc-option, -mllvm -polly-run-inliner) \
+                  $(call cc-option, -mllvm -polly-opt-fusion=max) \
+                  $(call cc-option, -mllvm -polly-ast-use-context) \
+                  $(call cc-option, -mllvm -polly-detect-keep-going) \
+                  $(call cc-option, -mllvm -polly-vectorizer=stripmine) \ 
+                  $(call cc-option, -mllvm -polly-invariant-load-hoisting)

2) run 
make O=../out ARCH=arm64 rosy-baunil_defconfig
make -j 8 O=../out ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- 
CROSS_COMPILE=aarch64-linux-gnu-

Actual Results : unable to execute command: Aborted
Expected Results: Build finished successfully (echo $? 0)
Build Date & Hardware : 20200703 Debian 10

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200703/eba6e949/attachment.html>


More information about the llvm-bugs mailing list