LLVM 20.0.0git
Macros | Functions
OptimizePHIs.cpp File Reference
#include "llvm/CodeGen/OptimizePHIs.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBasicBlock.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 (OptimizePHIsLegacy, DEBUG_TYPE, "Optimize machine instruction PHIs", false, false) PreservedAnalyses OptimizePHIsPass
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "opt-phis"

Definition at line 29 of file OptimizePHIs.cpp.

Function Documentation

◆ INITIALIZE_PASS()

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

◆ STATISTIC() [1/2]

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

References MRI, and TII.

◆ STATISTIC() [2/2]

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