|
LLVM
5.0.0
|
#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>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 36 of file SystemZElimCompare.cpp.
|
static |
Definition at line 171 of file SystemZElimCompare.cpp.
References assert(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineInstr::isCompare(), and isLoadAndTestAsCmp().
|
static |
Definition at line 106 of file SystemZElimCompare.cpp.
References SI, llvm::MachineBasicBlock::succ_begin(), and llvm::MachineBasicBlock::succ_end().
|
static |
Definition at line 368 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 160 of file SystemZElimCompare.cpp.
References llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::isDead().
Referenced by getCompareSourceReg(), and isCompareZero().
|
static |
Definition at line 114 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