LLVM 24.0.0git
TailDuplicator.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "tailduplication"

Functions

 STATISTIC (NumTails, "Number of tails duplicated")
 STATISTIC (NumTailDups, "Number of tail duplicated blocks")
 STATISTIC (NumTailDupAdded, "Number of instructions added due to tail duplication")
 STATISTIC (NumTailDupRemoved, "Number of instructions removed due to tail duplication")
 STATISTIC (NumDeadBlocks, "Number of dead blocks removed")
 STATISTIC (NumAddedPHIs, "Number of phis added")
static void VerifyPHIs (MachineFunction &MF, bool CheckExtra)
static bool isDefLiveOut (Register Reg, MachineBasicBlock *BB, const MachineRegisterInfo *MRI)
static unsigned getPHISrcRegOpIdx (MachineInstr *MI, MachineBasicBlock *SrcBB)
static void getRegsUsedByPHIs (const MachineBasicBlock &BB, DenseSet< Register > *UsedByPhi)
static bool bothUsedInPHI (const MachineBasicBlock &A, const SmallPtrSet< MachineBasicBlock *, 8 > &SuccsB)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "tailduplication"

Definition at line 48 of file TailDuplicator.cpp.

Function Documentation

◆ bothUsedInPHI()

◆ getPHISrcRegOpIdx()

unsigned getPHISrcRegOpIdx ( MachineInstr * MI,
MachineBasicBlock * SrcBB )
static

Definition at line 282 of file TailDuplicator.cpp.

References MI.

◆ getRegsUsedByPHIs()

void getRegsUsedByPHIs ( const MachineBasicBlock & BB,
DenseSet< Register > * UsedByPhi )
static

◆ isDefLiveOut()

bool isDefLiveOut ( Register Reg,
MachineBasicBlock * BB,
const MachineRegisterInfo * MRI )
static

Definition at line 271 of file TailDuplicator.cpp.

References MRI, Reg, and UseMI.

◆ STATISTIC() [1/6]

STATISTIC ( NumAddedPHIs ,
"Number of phis added"  )

◆ STATISTIC() [2/6]

STATISTIC ( NumDeadBlocks ,
"Number of dead blocks removed"  )

◆ STATISTIC() [3/6]

STATISTIC ( NumTailDupAdded ,
"Number of instructions added due to tail duplication"  )

◆ STATISTIC() [4/6]

STATISTIC ( NumTailDupRemoved ,
"Number of instructions removed due to tail duplication"  )

◆ STATISTIC() [5/6]

STATISTIC ( NumTailDups ,
"Number of tail duplicated blocks"  )

◆ STATISTIC() [6/6]

STATISTIC ( NumTails ,
"Number of tails duplicated"  )

◆ VerifyPHIs()