[llvm] [VPlan] Implement VPWidenCastRecipe::computeCost(). (NFCI) (PR #111339)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 20 21:13:30 PDT 2024
================
@@ -7258,12 +7258,29 @@ LoopVectorizationPlanner::precomputeCosts(VPlan &Plan, ElementCount VF,
const auto &ChainOps = RdxDesc.getReductionOpChain(RedPhi, OrigLoop);
SetVector<Instruction *> ChainOpsAndOperands(ChainOps.begin(),
ChainOps.end());
+ auto isZExtOrSExt = [](const unsigned Opcode) -> bool {
----------------
fhahn wrote:
```suggestion
auto IsZExtOrSExt = [](const unsigned Opcode) -> bool {
```
https://github.com/llvm/llvm-project/pull/111339
More information about the llvm-commits
mailing list