diff options
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp index 437e5c987a10..132e9a03b813 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp @@ -1217,8 +1217,8 @@ InstructionCost VPInstruction::computeCost(ElementCount VF, default: // TODO: Compute cost other VPInstructions once the legacy cost model has // been retired. - assert(!getUnderlyingValue() && - "unexpected VPInstruction witht underlying value"); + assert((getOpcode() == Instruction::PHI || !getUnderlyingValue()) && + "unexpected VPInstruction with underlying value"); return 0; } } @@ -4495,29 +4495,6 @@ void VPReductionPHIRecipe::print(raw_ostream &O, const Twine &Indent, } #endif -void VPMonotonicPHIRecipe::execute(VPTransformState &State) { - assert(getParent()->getPlan()->getUF() == 1 && "Expected unroll factor 1."); - Value *Start = getStartValue()->getLiveInIRValue(); - BasicBlock *VectorPH = - State.CFG.VPBB2IRBB.at(getParent()->getCFGPredecessor(0)); - PHINode *MonotonicPHI = - State.Builder.CreatePHI(Start->getType(), 2, "monotonic.iv"); - MonotonicPHI->addIncoming(Start, VectorPH); - MonotonicPHI->setDebugLoc(getDebugLoc()); - State.set(this, MonotonicPHI, /*IsScalar=*/true); -} - -#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void VPMonotonicPHIRecipe::print(raw_ostream &O, const Twine &Indent, - VPSlotTracker &SlotTracker) const { - O << Indent << "MONOTONIC-PHI "; - - printAsOperand(O, SlotTracker); - O << " = phi "; - printOperands(O, SlotTracker); -} -#endif - void VPWidenPHIRecipe::execute(VPTransformState &State) { Value *Op0 = State.get(getOperand(0)); Type *VecTy = Op0->getType(); |
