LLVM  6.0.0svn
Macros | Functions | Variables
EarlyIfConversion.cpp File Reference
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SparseSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBranchProbabilityInfo.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/MachineTraceMetrics.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for EarlyIfConversion.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "early-ifcvt"
 

Functions

 STATISTIC (NumDiamondsSeen, "Number of diamonds")
 
 STATISTIC (NumDiamondsConv, "Number of diamonds converted")
 
 STATISTIC (NumTrianglesSeen, "Number of triangles")
 
 STATISTIC (NumTrianglesConv, "Number of triangles converted")
 
 INITIALIZE_PASS_BEGIN (EarlyIfConverter, DEBUG_TYPE, "Early If Converter", false, false) INITIALIZE_PASS_END(EarlyIfConverter
 
static unsigned adjCycles (unsigned Cyc, int Delta)
 

Variables

static cl::opt< unsignedBlockInstrLimit ("early-ifcvt-limit", cl::init(30), cl::Hidden, cl::desc("Maximum number of instructions per speculated block."))
 
static cl::opt< boolStress ("stress-early-ifcvt", cl::Hidden, cl::desc("Turn all knobs to 11"))
 
 DEBUG_TYPE
 
Early If Converter
 
Early If false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "early-ifcvt"

Definition at line 42 of file EarlyIfConversion.cpp.

Function Documentation

◆ adjCycles()

static unsigned adjCycles ( unsigned  Cyc,
int  Delta 
)
static

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( EarlyIfConverter  ,
DEBUG_TYPE  ,
"Early If Converter ,
false  ,
false   
)

◆ STATISTIC() [1/4]

STATISTIC ( NumDiamondsSeen  ,
"Number of diamonds"   
)

◆ STATISTIC() [2/4]

STATISTIC ( NumDiamondsConv  ,
"Number of diamonds converted"   
)

◆ STATISTIC() [3/4]

STATISTIC ( NumTrianglesSeen  ,
"Number of triangles"   
)

◆ STATISTIC() [4/4]

STATISTIC ( NumTrianglesConv  ,
"Number of triangles converted"   
)

Variable Documentation

◆ BlockInstrLimit

cl::opt<unsigned> BlockInstrLimit("early-ifcvt-limit", cl::init(30), cl::Hidden, cl::desc("Maximum number of instructions per speculated block."))
static

◆ Converter

Early If Converter

Definition at line 624 of file EarlyIfConversion.cpp.

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 624 of file EarlyIfConversion.cpp.

◆ false

Early If false

Definition at line 624 of file EarlyIfConversion.cpp.

◆ Stress

cl::opt<bool> Stress("stress-early-ifcvt", cl::Hidden, cl::desc("Turn all knobs to 11"))
static

Referenced by adjCycles().