[llvm] [VPlan] Remove VPBlendRecipe and replace with select VPInstructions (PR #150369)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 1 05:16:39 PDT 2025
================
@@ -4203,10 +4202,13 @@ VectorizationFactor LoopVectorizationPlanner::selectVectorizationFactor() {
if (!VPI)
continue;
switch (VPI->getOpcode()) {
- // Selects are only modelled in the legacy cost model for safe
- // divisors.
case Instruction::Select: {
VPValue *VPV = VPI->getVPSingleValue();
+ // Blend selects are modelled in VPlan.
+ if (isa_and_nonnull<PHINode>(VPV->getUnderlyingValue()))
+ continue;
----------------
artagnon wrote:
```suggestion
continue;
```
https://github.com/llvm/llvm-project/pull/150369
More information about the llvm-commits
mailing list