LLVM 20.0.0git
Macros | Functions | Variables
PPCBranchCoalescing.cpp File Reference

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

#include "PPC.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/CodeGen/TargetFrameLowering.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/Debug.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "ppc-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 (PPCBranchCoalescing, DEBUG_TYPE, "Branch Coalescing", false, false) INITIALIZE_PASS_END(PPCBranchCoalescing
 

Variables

 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 PPCBranchCoalescing.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ppc-branch-coalescing"

Definition at line 30 of file PPCBranchCoalescing.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( PPCBranchCoalescing  ,
DEBUG_TYPE  ,
"Branch Coalescing"  ,
false  ,
false   
)

◆ STATISTIC() [1/3]

STATISTIC ( NumBlocksCoalesced  ,
"Number of blocks coalesced"   
)

◆ STATISTIC() [2/3]

STATISTIC ( NumBlocksNotCoalesced  ,
"Number of blocks not coalesced"   
)

References Cond.

◆ STATISTIC() [3/3]

STATISTIC ( NumPHINotMoved  ,
"Number of PHI Nodes that cannot be merged"   
)

Variable Documentation

◆ Coalescing

Branch Coalescing

Definition at line 200 of file PPCBranchCoalescing.cpp.

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 200 of file PPCBranchCoalescing.cpp.

◆ false

Branch false

Definition at line 201 of file PPCBranchCoalescing.cpp.