[llvm-branch-commits] [llvm] [AArch64] SLP can vectorize frem (PR #82488)

Paul Walker via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 22 07:15:30 PST 2024


================
@@ -410,6 +410,14 @@ bool maskIsAllOneOrUndef(Value *Mask);
 /// for each lane which may be active.
 APInt possiblyDemandedEltsInMask(Value *Mask);
 
+/// Returns the cost of a call when a target has a vector library function for
+/// the given \p VecTy, otherwise an invalid cost.
----------------
paulwalker-arm wrote:

I think this misses a crucial point as to why it exists.  Perhaps something like:

"Returns the cost of a vector instruction based on the assumption that it'll be later transformed (by ReplaceWithVecLib) into a call to a platform specific vector math function.  Instructions unsupported by ReplaceWithVecLib will return InstructionCost::getInvalid()."

https://github.com/llvm/llvm-project/pull/82488


More information about the llvm-branch-commits mailing list