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
- Build Status
Buildable 16084 Build 16084: arc lint + arc unit
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 | You could perform the IsPairwise check at the beginning of the function to exit early. |
You could perform the IsPairwise check at the beginning of the function to exit early.