[llvm-bugs] [Bug 46228] New: [LV] Loop vectorizer crashes trying to version for unit stride at -Os/-Oz

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jun 6 13:50:56 PDT 2020


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

            Bug ID: 46228
           Summary: [LV] Loop vectorizer crashes trying to version for
                    unit stride at -Os/-Oz
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: ayal.zaks at intel.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 23585
  --> https://bugs.llvm.org/attachment.cgi?id=23585&action=edit
Attached ll raises an assert compiled with "opt -loop-vectorize -S"

Loop access analysis may generate runtime checks to version a loop for unit
strides, under -Os/-Oz, when loop vectorization is enabled. This later raises
the loop vectorizer's assert: "Cannot SCEV check stride or overflow when
optimizing for size".

Reproduced by compiling the attached with "opt -loop-vectorize -S".

-- 
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/20200606/a291c2ab/attachment.html>


More information about the llvm-bugs mailing list