[PATCH] D31679: Use PMADDWD to expand reduction in a loop

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 21:55:34 PDT 2017


zvi added a comment.

Thanks for working on this patch. Regarding support for PMADDUBSW, can we match something like the following?

  for (int i = 0; i < count; i++) {
    a = saturate(a + x[i] * y[i]);
  }


https://reviews.llvm.org/D31679





More information about the llvm-commits mailing list