LLVM 22.0.0git
|
Protected Member Functions | |
BasicBlock * | emitMinimumVectorEpilogueIterCountCheck (BasicBlock *VectorPH, BasicBlock *Bypass, BasicBlock *Insert) |
Emits an iteration count bypass check after the main vector loop has finished to see if there are any iterations left to execute by either the vector epilogue or the scalar epilogue. | |
void | printDebugTracesAtStart () override |
Allow subclasses to override and print debug traces before/after vplan execution, when trace information is requested. | |
void | printDebugTracesAtEnd () override |
Protected Member Functions inherited from llvm::InnerLoopVectorizer | |
BasicBlock * | createScalarPreheader (StringRef Prefix) |
Create and return a new IR basic block for the scalar preheader whose name is prefixed with Prefix . |
Additional Inherited Members | |
Public Attributes inherited from llvm::InnerLoopAndEpilogueVectorizer | |
EpilogueLoopVectorizationInfo & | EPI |
Holds and updates state information required to vectorize the main loop and its epilogue in two separate passes. | |
Protected Attributes inherited from llvm::InnerLoopAndEpilogueVectorizer | |
ElementCount | MinProfitableTripCount |
Protected Attributes inherited from llvm::InnerLoopVectorizer | |
Loop * | OrigLoop |
The original loop. | |
PredicatedScalarEvolution & | PSE |
A wrapper around ScalarEvolution used to add runtime SCEV checks. | |
LoopInfo * | LI |
Loop Info. | |
DominatorTree * | DT |
Dominator Tree. | |
const TargetTransformInfo * | TTI |
Target Transform Info. | |
AssumptionCache * | AC |
Assumption Cache. | |
ElementCount | VF |
The vectorization SIMD factor to use. | |
unsigned | UF |
The vectorization unroll factor to use. | |
IRBuilder | Builder |
The builder that we use. | |
Value * | TripCount = nullptr |
Trip count of the original loop. | |
LoopVectorizationCostModel * | Cost |
The profitablity analysis. | |
BlockFrequencyInfo * | BFI |
BFI and PSI are used to check for profile guided size optimizations. | |
ProfileSummaryInfo * | PSI |
GeneratedRTChecks & | RTChecks |
Structure to hold information about generated runtime checks, responsible for cleaning the checks, if vectorization turns out unprofitable. | |
VPlan & | Plan |
VPBasicBlock * | VectorPHVPBB |
The vector preheader block of Plan , used as target for check blocks introduced during skeleton creation. |
Definition at line 690 of file LoopVectorize.cpp.
|
inline |
Definition at line 697 of file LoopVectorize.cpp.
References llvm::InnerLoopVectorizer::AC, llvm::InnerLoopVectorizer::BFI, llvm::InnerLoopVectorizer::DT, llvm::InnerLoopAndEpilogueVectorizer::EPI, llvm::InnerLoopAndEpilogueVectorizer::InnerLoopAndEpilogueVectorizer(), llvm::InnerLoopVectorizer::LI, llvm::InnerLoopVectorizer::OrigLoop, llvm::InnerLoopVectorizer::Plan, llvm::InnerLoopVectorizer::PSE, llvm::InnerLoopVectorizer::PSI, and llvm::InnerLoopVectorizer::TripCount.
|
finalvirtual |
Implements the interface for creating a vectorized skeleton using the epilogue loop strategy (i.e., the second pass of VPlan execution).
This function is partially responsible for generating the control flow depicted in https://llvm.org/docs/Vectorizers.html#epilogue-vectorization.
Reimplemented from llvm::InnerLoopVectorizer.
Definition at line 7365 of file LoopVectorize.cpp.
References assert(), llvm::BasicBlock::begin(), llvm::InnerLoopVectorizer::createScalarPreheader(), llvm::InnerLoopVectorizer::DT, emitMinimumVectorEpilogueIterCountCheck(), llvm::InnerLoopAndEpilogueVectorizer::EPI, llvm::BasicBlock::getFirstNonPHIIt(), llvm::BasicBlock::getSinglePredecessor(), llvm::BasicBlock::getTerminator(), llvm::InnerLoopVectorizer::LI, llvm::make_pointer_range(), llvm::none_of(), llvm::BasicBlock::phis(), llvm::User::replaceUsesOfWith(), replaceVPBBWithIRVPBB(), llvm::InnerLoopVectorizer::RTChecks, llvm::Value::setName(), llvm::SplitBlock(), and llvm::InnerLoopVectorizer::VectorPHVPBB.
|
protected |
Emits an iteration count bypass check after the main vector loop has finished to see if there are any iterations left to execute by either the vector epilogue or the scalar epilogue.
Definition at line 7433 of file LoopVectorize.cpp.
References assert(), llvm::InnerLoopVectorizer::Builder, llvm::Count, llvm::BranchInst::Create(), llvm::createStepForVF(), llvm::InnerLoopAndEpilogueVectorizer::EPI, estimateElementCount(), llvm::CmpInst::ICMP_ULE, llvm::CmpInst::ICMP_ULT, P, llvm::InnerLoopVectorizer::Plan, llvm::VPBlockUtils::reassociateBlocks(), llvm::ReplaceInstWithInst(), and llvm::setBranchWeights().
Referenced by createVectorizedLoopSkeleton().
|
inline |
Return the additional bypass block which targets the scalar loop by skipping the epilogue loop after completing the main loop.
Definition at line 714 of file LoopVectorize.cpp.
References assert(), and getAdditionalBypassBlock().
Referenced by getAdditionalBypassBlock(), and llvm::LoopVectorizePass::processLoop().
|
overrideprotectedvirtual |
Reimplemented from llvm::InnerLoopVectorizer.
Definition at line 7491 of file LoopVectorize.cpp.
References llvm::dbgs(), DEBUG_WITH_TYPE, llvm::InnerLoopVectorizer::OrigLoop, and VerboseDebug.
|
overrideprotectedvirtual |
Allow subclasses to override and print debug traces before/after vplan execution, when trace information is requested.
Reimplemented from llvm::InnerLoopVectorizer.
Definition at line 7483 of file LoopVectorize.cpp.
References llvm::dbgs(), llvm::InnerLoopAndEpilogueVectorizer::EPI, and LLVM_DEBUG.