[PATCH] [SLPVectorizer] Reorder operands of shufflevector if it can result in a vectorized code.

Michael Zolotukhin mzolotukhin at apple.com
Mon Jan 19 11:52:15 PST 2015


Hi Karthik,

Yes, you're right about my example. But we can modify it in the following way:

  a[0]+c[0]    b[0]
  a[3]/d[3]    b[1]
  b[2]         b[2]
  a[1]*c[1]    b[3]

If I'm not mistaken, we'll transform it to

  a[0]+c[0]    b[0]
  a[3]/d[3]    b[1]
  b[2]         b[2]
  b[3]         a[1]*c[1]

Thanks,
Michael


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6677

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list