Vector API - Request to expose horizontal adds
Paul Sandoz
paul.sandoz at oracle.com
Tue Apr 27 00:00:42 UTC 2021
That operation returns a scalar value that is the reduction over *all* lane elements. The hadd vector instruction performs a partial reduction. C2 leverages hadd for an ADD reduction, but does not expose it directly.
Paul.
> On Apr 26, 2021, at 4:52 PM, August Nagro <augustnagro at gmail.com> wrote:
>
> Isn't `myVector.reduceLanes(ADD, myMask)` the same as horizontal addition instruction?
More information about the panama-dev
mailing list