[llvm] [VPlan] Simplify VPBlendRecipes to select instructions (PR #133993)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 01:38:52 PDT 2025
================
@@ -928,6 +928,19 @@ InstructionCost VPInstruction::computeCost(ElementCount VF,
return Ctx.TTI.getVectorInstrCost(Instruction::ExtractElement, VecTy,
Ctx.CostKind);
}
+ case Instruction::Select: {
+ if (!getUnderlyingValue())
----------------
artagnon wrote:
```suggestion
if (!isLiveIn() || !getUnderlyingValue())
```
https://github.com/llvm/llvm-project/pull/133993
More information about the llvm-commits
mailing list