llvm-project
dfd38336 - [RISCV][TTI] Implement getAddressComputationCost() in RISCV TTI. (#149955)

Commit
164 days ago
[RISCV][TTI] Implement getAddressComputationCost() in RISCV TTI. (#149955) This patch implements the `getAddressComputationCost()` in RISCV TTI which make the gather/scatter with address calculation more expansive that stride cost. Note that the only user of `getAddressComputationCost()` with vector type is in `VPWidenMemoryRecipe::computeCost()`. So this patch make some LV tests changes. I've checked the tests changes in LV and seems those changes can be divided into two groups. * gather/scatter with uniform vector ptr, seems can be optimized to masked.load. * can optimize to stride load/store.
Author
Parents
Loading