This patch provides an implementation of getArithmeticReductionCost for AArch64. We can specialize the cost of add reductions since they are computed using the 'addv' instruction.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I'm happy to see this! LGTM with just one small comment, no need to re-review. Thanks!
lib/Target/AArch64/AArch64TargetTransformInfo.cpp | ||
---|---|---|
911 ↗ | (On Diff #138438) | You could perform the IsPairwise check at the beginning of the function to exit early. |
Comment Actions
Thanks, Sam!
lib/Target/AArch64/AArch64TargetTransformInfo.cpp | ||
---|---|---|
911 ↗ | (On Diff #138438) | Yes, will do! |