LLVM 20.0.0git
Macros | Functions
OptimizePHIs.cpp File Reference
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include <cassert>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "opt-phis"
 

Functions

 STATISTIC (NumPHICycles, "Number of PHI cycles replaced")
 
 STATISTIC (NumDeadPHICycles, "Number of dead PHI cycles")
 
 INITIALIZE_PASS (OptimizePHIs, DEBUG_TYPE, "Optimize machine instruction PHIs", false, false) bool OptimizePHIs
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "opt-phis"

Definition at line 29 of file OptimizePHIs.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( OptimizePHIs  ,
DEBUG_TYPE  ,
"Optimize machine instruction PHIs"  ,
false  ,
false   
)

Definition at line 70 of file OptimizePHIs.cpp.

References MBB, MRI, and TII.

◆ STATISTIC() [1/2]

STATISTIC ( NumDeadPHICycles  ,
"Number of dead PHI cycles"   
)

References MRI, and TII.

◆ STATISTIC() [2/2]

STATISTIC ( NumPHICycles  ,
"Number of PHI cycles replaced"   
)