LLVM  5.0.0
Macros | Functions | Variables
BranchCoalescing.cpp File Reference

Coalesce basic blocks guarded by the same branch condition into a single basic block. More...

#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachinePostDominators.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/Support/Debug.h"
#include "llvm/Target/TargetFrameLowering.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
Include dependency graph for BranchCoalescing.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "branch-coalescing"
 

Functions

 STATISTIC (NumBlocksCoalesced,"Number of blocks coalesced")
 
 STATISTIC (NumPHINotMoved,"Number of PHI Nodes that cannot be merged")
 
 STATISTIC (NumBlocksNotCoalesced,"Number of blocks not coalesced")
 
 INITIALIZE_PASS_BEGIN (BranchCoalescing, DEBUG_TYPE,"Branch Coalescing", false, false) INITIALIZE_PASS_END(BranchCoalescing
 

Variables

static cl::opt< cl::boolOrDefault > EnableBranchCoalescing ("enable-branch-coalesce", cl::Hidden, cl::desc("enable coalescing of duplicate branches"))
 
 DEBUG_TYPE
 
Branch Coalescing
 
Branch false
 

Detailed Description

Coalesce basic blocks guarded by the same branch condition into a single basic block.

Definition in file BranchCoalescing.cpp.

Macro Definition Documentation

#define DEBUG_TYPE   "branch-coalescing"

Definition at line 30 of file BranchCoalescing.cpp.

Function Documentation

INITIALIZE_PASS_BEGIN ( BranchCoalescing  ,
DEBUG_TYPE  ,
"Branch Coalescing"  ,
false  ,
false   
)
STATISTIC ( NumBlocksCoalesced  ,
"Number of blocks coalesced"   
)
STATISTIC ( NumPHINotMoved  ,
"Number of PHI Nodes that cannot be merged"   
)
STATISTIC ( NumBlocksNotCoalesced  ,
"Number of blocks not coalesced"   
)

Variable Documentation

Branch Coalescing

Definition at line 200 of file BranchCoalescing.cpp.

DEBUG_TYPE

Definition at line 200 of file BranchCoalescing.cpp.

cl::opt<cl::boolOrDefault> EnableBranchCoalescing("enable-branch-coalesce", cl::Hidden, cl::desc("enable coalescing of duplicate branches"))
static
Branch false

Definition at line 200 of file BranchCoalescing.cpp.