[llvm-bugs] [Bug 43161] New: [loop vectorizer] Single extra copy of for loop breaks vectorization of the previous 4 copies.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 29 01:14:41 PDT 2019


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

            Bug ID: 43161
           Summary: [loop vectorizer] Single extra copy of for loop breaks
                    vectorization of the previous 4 copies.
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: manolismih at windowslive.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Created attachment 22446
  --> https://bugs.llvm.org/attachment.cgi?id=22446&action=edit
Code posted on godbolt

Hello, could you please have a look at this code posted on godbolt.org:
https://godbolt.org/z/O-O-Q7
(code also attached in case godbolt link breaks)

The problem is that inside the compute function, only the first loop vectorizes
while the rest copies of it don't. But if I remove any of the for loops, then
the rest vectorize successfully. The message "Cannot identify array bounds" is
not helpful.

-- 
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/20190829/2e3679a8/attachment.html>


More information about the llvm-bugs mailing list