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: unassignedclangb...@nondot.org
          Reporter: manolis...@windowslive.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to