24 auto *TopRegion = cast<VPRegionBlock>(Plan->getEntry());
33 auto *NCondBit =
new VPValue(CondBit->getUnderlyingValue());
35 Plan->addCBV(NCondBit);
40 if (
Base->getNumPredecessors() == 0 ||
Base->getNumSuccessors() == 0)
51 if (DeadInstructions.
count(Inst)) {
58 if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
62 else if (
PHINode *Phi = dyn_cast<PHINode>(Inst)) {
75 dyn_cast_or_null<VPWidenRecipe>(LastRecipe)) {
76 WidenRecipe->appendInstruction(Inst);
84 LastRecipe = NewRecipe;
This class represents lattice values for constants.
iplist< VPRecipeBase >::iterator eraseFromParent()
This method unlinks 'this' from the containing basic block and deletes it.
A Recipe for widening load/store operations.
InductionKind getKind() const
A recipe for handling GEP instructions.
VPRecipeBase is a base class modeling a sequence of one or more output IR instructions.
const Value * getLoadStorePointerOperand(const Value *V)
A helper function that returns the pointer operand of a load or store instruction.
A recipe for handling all phi nodes except for integer and FP inductions.
void insertBefore(VPRecipeBase *InsertPos)
Insert an unlinked recipe into a basic block immediately before the specified recipe.
iterator begin()
Recipe iterator methods.
an instruction for type-safe pointer arithmetic to access elements of arrays and structs ...
Value * getUnderlyingValue()
Return the underlying Value attached to this VPValue.
Integer induction variable. Step = C.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
std::unique_ptr< VPlan > VPlanPtr
size_type count(ConstPtrType Ptr) const
count - Return 1 if the specified pointer is in the set, 0 otherwise.
VPBasicBlock serves as the leaf of the Hierarchical Control-Flow Graph.
A struct for saving information about induction variables.
VPBlockBase is the building block of the Hierarchical Control-Flow Graph.
void setCondBit(VPValue *CV)
ValueT lookup(const KeyT &Key) const
Floating point induction variable.
Represents a single loop in the control flow graph.
A recipe for handling phi nodes of integer and floating-point inductions, producing their vector and ...
VPWidenRecipe is a recipe for producing a copy of vector type for each Instruction in its ingredients...
This is a concrete Recipe that models a single VPlan-level instruction.