[PATCH] D30086: Add generic IR vector reductions

Renato Golin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 8 06:04:04 PDT 2017


rengolin added a comment.

In https://reviews.llvm.org/D30086#748611, @aemerson wrote:

> When people add new intrinsics they don't really add tests to check the IR since you get assertion failures during the FunctionType creation if something goes wrong.


But without IR functions that actually uses them, there's no way to get the assertion, right?

> Since this is laying the foundations, and that future patches will a) enable this for AArch64 (which comes with reduction tests), and b) adds an expansion pass to convert back into shuffle reductions, I don't see the need to test the actual bare intrinsics part here.

If everyone is happy for this patch to go in without tests (relying on further tests coming in following patches), I'm ok with it too.

For this reason, I'll let this review for someone else (@mkuper?, @RKSimon?) to approve.

cheers,
--renato


Repository:
  rL LLVM

https://reviews.llvm.org/D30086





More information about the llvm-commits mailing list