It uses MaxVScale to compute the maximum size of the scalable vector,
and assumes vector.reduce.<operand> uses tree-wise reduction algorithm
to compute the cost model.
Depends on D93030
Differential D93639
[AArch64][SVE]Add cost model for vector reduce for scalable vector CarolineConcatto on Dec 21 2020, 8:07 AM. Authored by
Details It uses MaxVScale to compute the maximum size of the scalable vector, Depends on D93030
Diff Detail
Event Timeline
Comment Actions -Split the cost on legalization and horizontal vector reduction cost as
Comment Actions
Comment Actions Thank you @sdesmalen for helping to refine the code.
Comment Actions -remove redundant code Comment Actions Thanks for the changes so far, I think the patch is nearly there now.
Comment Actions @Thank you Sander,
Comment Actions LGTM
|
My understanding is that the PairWise form is not something that can be expressed with the LLVM IR intrinsic and is therefore specific to fixed-width vectors which can use shufflevector.
Perhaps you can just assert IsPairWise is false. @david-arm any thoughts?