[PATCH] D34038: Implement the non-parallel versions of exclusive_scan and transform_exclusive_scan

Bryce Adelstein Lelbach via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 8 16:53:59 PDT 2017


wash added a comment.

This implementation works, but performs unnecessary operations.

https://gist.github.com/brycelelbach/907ac3b8a74603cc189897ab789a65a9

The "next" result is calculated in each iteration; this means one unnecessary application of the binary op (the "next" result on the final iteration).


https://reviews.llvm.org/D34038





More information about the cfe-commits mailing list