[llvm] [LV] Autovectorization for the all-in-one histogram intrinsic (PR #91458)
Paschalis Mpeis via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 05:34:30 PDT 2024
================
@@ -8523,6 +8561,12 @@ VPRecipeBuilder::tryToCreateWidenRecipe(Instruction *Instr,
if (auto *CI = dyn_cast<CallInst>(Instr))
return tryToWidenCall(CI, Operands, Range);
+ if (StoreInst *SI = dyn_cast<StoreInst>(Instr)) {
----------------
paschalis-mpeis wrote:
nit, IFF you fancy something like below better:
```cpp
if (StoreInst *SI = dyn_cast<StoreInst>(Instr))
if (auto HI = Legal->getHistogramForStore(SI))
return tryToWidenHistogram(*HI, Operands);
```
https://github.com/llvm/llvm-project/pull/91458
More information about the llvm-commits
mailing list