[llvm] [LV] Explicitly disable in-loop reductions for AnyOf and FindIV. nfc (PR #163541)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 3 00:54:46 PST 2025
Mel-Chen wrote:
> I wonder there is a lot call of `RdxDesc.getOpcode()` in the function `LoopVectorizationCostModel::getReductionPatternCost`, if the `RecurKind` of `RdxDesc` is `AnyOf`, it will hit assert and crash, I am curious whether we have a test case for that ? @Mel-Chen or it never happen?
Not at the moment, since in-loop AnyOf is not yet supported.
```
/// Return the cost of instructions in an inloop reduction pattern, if I is
/// part of that pattern.
std::optional<InstructionCost> getReductionPatternCost(Instruction *I,
ElementCount VF,
Type *VectorTy) const;
```
https://github.com/llvm/llvm-project/pull/163541
More information about the llvm-commits
mailing list