23#define DEBUG_TYPE "aarch64-redundantcondbranch"
33 return "AArch64 Redundant Conditional Branch Elimination";
43char AArch64RedundantCondBranchLegacy::ID = 0;
47 "AArch64 Redundant Conditional Branch Elimination pass",
false,
59bool AArch64RedundantCondBranchLegacy::runOnMachineFunction(
64 return runAArch64RedundantCondBranch(MF);
70 if (runAArch64RedundantCondBranch(MF)) {
77 return new AArch64RedundantCondBranchLegacy();
const HexagonInstrInfo * TII
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
FunctionPass class - This class is used to implement most global optimizations.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
Properties which a MachineFunction may have at a given point in time.
Function & getFunction()
Return the LLVM function that this machine code represents.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
StringRef - Represent a constant reference to a string, i.e.
TargetInstrInfo - Interface to description of machine instruction set.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< MachineFunction > MachineFunctionAnalysisManager
LLVM_ABI PreservedAnalyses getMachineFunctionPassPreservedAnalyses()
Returns the minimum set of Analyses that all machine function passes must preserve.
bool optimizeTerminators(MachineBasicBlock *MBB, const TargetInstrInfo &TII)
FunctionPass * createAArch64RedundantCondBranchPass()