ΒΆllvm::VPValue* getOrCreateVPValueForSCEVExpr(
    llvm::VPlan& Plan,
    const llvm::SCEV* Expr,
    llvm::ScalarEvolution& SE)

Description

Get or create a VPValue that corresponds to the expansion of \p Expr. If \p Expr is a SCEVConstant or SCEVUnknown, return a VPValue wrapping the live-in value. Otherwise return a VPExpandSCEVRecipe to expand \p Expr. If \p Plan's pre-header already contains a recipe expanding \p Expr, return it. If not, create a new one.

Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:3066

Parameters

llvm::VPlan& Plan
const llvm::SCEV* Expr
llvm::ScalarEvolution& SE