LLVM 20.0.0git
|
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "machine-latecleanup" |
Functions | |
STATISTIC (NumRemoved, "Number of redundant instructions removed.") | |
INITIALIZE_PASS (MachineLateInstrsCleanup, DEBUG_TYPE, "Machine Late Instructions Cleanup Pass", false, false) bool MachineLateInstrsCleanup | |
static bool | isCandidate (const MachineInstr *MI, Register &DefedReg, Register FrameReg) |
#define DEBUG_TYPE "machine-latecleanup" |
Definition at line 33 of file MachineLateInstrsCleanup.cpp.
INITIALIZE_PASS | ( | MachineLateInstrsCleanup | , |
DEBUG_TYPE | , | ||
"Machine Late Instructions Cleanup Pass" | , | ||
false | , | ||
false | |||
) |
Definition at line 88 of file MachineLateInstrsCleanup.cpp.
|
static |
Definition at line 152 of file MachineLateInstrsCleanup.cpp.
References llvm::MachineOperand::getReg(), llvm::MachineOperand::isCImm(), llvm::MachineOperand::isCPI(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isFPImm(), llvm::MachineOperand::isGlobal(), llvm::MachineOperand::isImm(), llvm::MachineOperand::isImplicit(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isSymbol(), llvm::Register::isValid(), MI, and llvm::MCRegister::NoRegister.
Referenced by findBestInsertionSet().
STATISTIC | ( | NumRemoved | , |
"Number of redundant instructions removed." | |||
) |