[PATCH] D149654: [SLP][RISCV] Account for offset folding in getPointersChainCost
Luke Lau via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 19 05:19:47 PDT 2023
luke added inline comments.
================
Comment at: llvm/test/Transforms/SLPVectorizer/RISCV/getpointerschaincost.ll:56
+; CHECK-NEXT: SLP: VectorCost = 1
+; CHECK-NEXT: SLP: ScalarCost = 1
+entry:
----------------
Also worth noting, I tried to come up with a test case where only some of the pointers were folded and some weren't, but couldn't find a sane way to do so.
Namely for RISC-V, we need a chain of pointers that are unit-strided, but is also somehow long enough that the offset overflows 2^12.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149654/new/
https://reviews.llvm.org/D149654
More information about the llvm-commits
mailing list