LLVM
15.0.0git
|
#include "RISCV.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Support/Debug.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "riscv-copyelim" |
Functions | |
STATISTIC (NumCopiesRemoved, "Number of copies removed.") | |
INITIALIZE_PASS (RISCVRedundantCopyElimination, "riscv-copyelim", "RISCV redundant copy elimination pass", false, false) static bool guaranteesZeroRegInBlock(const MachineInstr &MI | |
if (Opc==RISCV::BEQ &&MI.getOperand(1).getReg()==RISCV::X0 &&&MBB==MI.getOperand(2).getMBB()) return true | |
Variables | |
const MachineBasicBlock & | MBB |
return | false |
#define DEBUG_TYPE "riscv-copyelim" |
Definition at line 34 of file RISCVRedundantCopyElimination.cpp.
INITIALIZE_PASS | ( | RISCVRedundantCopyElimination | , |
"riscv-copyelim" | , | ||
"RISCV redundant copy elimination pass" | , | ||
false | , | ||
false | |||
) | const & |
return false |
Definition at line 81 of file RISCVRedundantCopyElimination.cpp.
const MachineBasicBlock& MBB |
Definition at line 72 of file RISCVRedundantCopyElimination.cpp.