http://bugs.llvm.org/show_bug.cgi?id=32135

            Bug ID: 32135
           Summary: Loop vectorizer miscompile
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedb...@nondot.org
          Reporter: craig.top...@gmail.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 18052
  --> http://bugs.llvm.org/attachment.cgi?id=18052&action=edit
Test case

The attached test case produces different output when compiled at -O1 and -O2.

The power of 2 trip count of the first loop seems to be significant. Values of
64, 128, and 256 all expose the problem. 16 does not.

It's also significant that the index for the second loop is a smaller type than
the first loop. If the same index type is used for both the loop is reduced to
a single store before the loop vectorizer even runs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to