<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - poll crashes with "-mllvm -polly-vectorizer=stripmine" running pass 'Polly - Optimize schedule of SCoP'"
   href="https://bugs.llvm.org/show_bug.cgi?id=46578">46578</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>poll crashes with "-mllvm -polly-vectorizer=stripmine" running pass 'Polly - Optimize schedule of SCoP'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Polly
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Optimizer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>polly-dev@googlegroups.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kaban@foxmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23676" name="attach_23676" title="associated run script">attachment 23676</a> <a href="attachment.cgi?id=23676&action=edit" title="associated run script">[details]</a></span>
associated run script

i try to Enable LLVM Polly optimizations in kernel
(<a href="https://github.com/OPPO9008/android_kernel_xiaomi_rosy">https://github.com/OPPO9008/android_kernel_xiaomi_rosy</a> 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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>