|
LLVM
4.0.0
|
#include "SystemZTargetMachine.h"#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/IR/Function.h"#include "llvm/Support/MathExtras.h"#include "llvm/Target/TargetInstrInfo.h"#include "llvm/Target/TargetMachine.h"#include "llvm/Target/TargetRegisterInfo.h"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) |
| #define DEBUG_TYPE "systemz-elim-compare" |
Definition at line 28 of file SystemZElimCompare.cpp.
|
static |
Definition at line 164 of file SystemZElimCompare.cpp.
References assert(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineInstr::isCompare(), and isLoadAndTestAsCmp().
|
static |
Definition at line 99 of file SystemZElimCompare.cpp.
References SI, llvm::MachineBasicBlock::succ_begin(), and llvm::MachineBasicBlock::succ_end().
|
static |
Definition at line 363 of file SystemZElimCompare.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getNumExplicitOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::isImm(), and isLoadAndTestAsCmp().
|
static |
Definition at line 153 of file SystemZElimCompare.cpp.
References llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::isDead().
Referenced by getCompareSourceReg(), and isCompareZero().
|
static |
Definition at line 107 of file SystemZElimCompare.cpp.
References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isReg(), and llvm::MipsISD::LDR.
| 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" | |||
| ) |
1.8.6