LLVM  5.0.0
Macros | Functions
SystemZElimCompare.cpp File Reference
#include "SystemZ.h"
#include "SystemZInstrInfo.h"
#include "SystemZTargetMachine.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
#include <cassert>
#include <cstdint>
Include dependency graph for SystemZElimCompare.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "systemz-elim-compare"
 

Functions

 STATISTIC (BranchOnCounts,"Number of branch-on-count instructions")
 
 STATISTIC (LoadAndTraps,"Number of load-and-trap instructions")
 
 STATISTIC (EliminatedComparisons,"Number of eliminated comparisons")
 
 STATISTIC (FusedComparisons,"Number of fused compare-and-branch instructions")
 
static bool isCCLiveOut (MachineBasicBlock &MBB)
 
static bool resultTests (MachineInstr &MI, unsigned Reg)
 
static bool isLoadAndTestAsCmp (MachineInstr &MI)
 
static unsigned getCompareSourceReg (MachineInstr &Compare)
 
static bool isCompareZero (MachineInstr &Compare)
 

Macro Definition Documentation

#define DEBUG_TYPE   "systemz-elim-compare"

Definition at line 36 of file SystemZElimCompare.cpp.

Function Documentation

static unsigned getCompareSourceReg ( MachineInstr &  Compare)
static
static bool isCCLiveOut ( MachineBasicBlock &  MBB)
static
static bool isCompareZero ( MachineInstr &  Compare)
static
static bool isLoadAndTestAsCmp ( MachineInstr &  MI)
static
static bool resultTests ( MachineInstr &  MI,
unsigned  Reg 
)
static
STATISTIC ( BranchOnCounts  ,
"Number of branch-on-count instructions"   
)
STATISTIC ( LoadAndTraps  ,
"Number of load-and-trap instructions"   
)
STATISTIC ( EliminatedComparisons  ,
"Number of eliminated comparisons"   
)
STATISTIC ( FusedComparisons  ,
"Number of fused compare-and-branch instructions"   
)