================ @@ -6987,6 +7024,17 @@ class BoUpSLP::ShuffleCostEstimator : public BaseShuffleAnalysis { auto *VecTy = FixedVectorType::get(VL.front()->getType(), VL.size()); InstructionCost GatherCost = 0; SmallVector<Value *> Gathers(VL.begin(), VL.end()); + auto ComputeGatherCost = [&]() { + return all_of(Gathers, UndefValue::classof) + ? TTI::TCC_Free + : R.getGatherCost(Gathers, !Root && VL.equals(Gathers)); + }; ---------------- fhahn wrote:
Indeed not needed in the latest version, removed thanks! https://github.com/llvm/llvm-project/pull/77790 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits