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

            Bug ID: 17963
           Summary: SCEV dropping NSW/NUW flags on non-unit stride access
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 11556
  --> http://llvm.org/bugs/attachment.cgi?id=11556&action=edit
example in C and IR

The attached C code, compiled with Clang to the attached IR has a
multiplicative factor of 2, and SCEV::getMulExpr() is losing the NSW that is on
the multiplication for being too conservative.

Keeping the NSW flags will help the non-unit stride analysis on the vectorizer.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to