[llvm-bugs] [Bug 40522] New: [SLPVectorizer] Failure to use vector store as a seed point

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 30 03:17:58 PST 2019


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

            Bug ID: 40522
           Summary: [SLPVectorizer] Failure to use vector store as a seed
                    point
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: a.bataev at hotmail.com, llvm-bugs at lists.llvm.org,
                    spatel+llvm at rotateright.com

https://godbolt.org/z/6NyXmr

void test1(float a, float b, float c, float d, int *p) {
  int4 result = (int4) { (int) a, (int) b, (int) c, (int) d };
  *p++ = result[0];
  *p++ = result[1];
  *p++ = result[2];
  *p++ = result[3];
}

void test1_vec(float a, float b, float c, float d, int4 *p) {
  int4 result = (int4) { (int) a, (int) b, (int) c, (int) d };
  *p = result;
}

We will vectorize the first variant but not the second.

-- 
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/20190130/b332b95d/attachment.html>


More information about the llvm-bugs mailing list