LLVM  15.0.0git
Functions
VPlanTransforms.cpp File Reference
#include "VPlanTransforms.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/Analysis/IVDescriptors.h"
Include dependency graph for VPlanTransforms.cpp:

Go to the source code of this file.

Functions

VPValuegetPredicatedMask (VPRegionBlock *R)
 If R is a region with a VPBranchOnMaskRecipe in the entry block, return the mask. More...
 
static VPBasicBlockgetPredicatedThenBlock (VPRegionBlock *R)
 If R is a triangle region, return the 'then' block of the triangle. More...
 
static bool hasOutsideUser (Instruction &I, Loop &OrigLoop)
 

Detailed Description

This file implements a set of utility VPlan to VPlan transformations.

Definition in file VPlanTransforms.cpp.

Function Documentation

◆ getPredicatedMask()

VPValue* getPredicatedMask ( VPRegionBlock R)

If R is a region with a VPBranchOnMaskRecipe in the entry block, return the mask.

Definition at line 188 of file VPlanTransforms.cpp.

Referenced by llvm::VPlanTransforms::mergeReplicateRegions().

◆ getPredicatedThenBlock()

static VPBasicBlock* getPredicatedThenBlock ( VPRegionBlock R)
static

If R is a triangle region, return the 'then' block of the triangle.

Definition at line 198 of file VPlanTransforms.cpp.

Referenced by llvm::VPlanTransforms::mergeReplicateRegions().

◆ hasOutsideUser()

static bool hasOutsideUser ( Instruction I,
Loop OrigLoop 
)
static

Definition at line 372 of file VPlanTransforms.cpp.

References llvm::any_of(), and I.

Referenced by llvm::VPlanTransforms::removeDeadRecipes().