[PATCH] D96904: [IR] restrict vector reduction intrinsic types

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 14:45:18 PST 2021


spatel added a comment.

In D96904#2569798 <https://reviews.llvm.org/D96904#2569798>, @nikic wrote:

> Does this still reject the use of a non-vector argument?

Yes, but the error occurs on the return type because you can't get a vector element type based on the incorrect scalar arg. So we'll see:
"Intrinsic has incorrect return type!"

I'll add a couple of tests with that malformed pattern.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96904/new/

https://reviews.llvm.org/D96904



More information about the llvm-commits mailing list