LLVM 17.0.0git
|
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/CFG.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineOptimizationRemarkEmitter.h"
#include "llvm/CodeGen/MachinePostDominators.h"
#include "llvm/CodeGen/RegisterClassInfo.h"
#include "llvm/CodeGen/RegisterScavenging.h"
#include "llvm/CodeGen/TargetFrameLowering.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/Function.h"
#include "llvm/InitializePasses.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
#include <cassert>
#include <cstdint>
#include <memory>
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "shrink-wrap" |
Functions | |
STATISTIC (NumFunc, "Number of functions") | |
STATISTIC (NumCandidates, "Number of shrink-wrapping candidates") | |
STATISTIC (NumCandidatesDropped, "Number of shrink-wrapping candidates dropped because of frequency") | |
template<typename ListOfBBs , typename DominanceAnalysis > | |
static MachineBasicBlock * | FindIDom (MachineBasicBlock &Block, ListOfBBs BBs, DominanceAnalysis &Dom) |
Helper function to find the immediate (post) dominator. | |
static bool | giveUpWithRemarks (MachineOptimizationRemarkEmitter *ORE, StringRef RemarkName, StringRef RemarkMessage, const DiagnosticLocation &Loc, const MachineBasicBlock *MBB) |
Variables | |
static cl::opt< cl::boolOrDefault > | EnableShrinkWrapOpt ("enable-shrink-wrap", cl::Hidden, cl::desc("enable the shrink-wrapping pass")) |
#define DEBUG_TYPE "shrink-wrap" |
Definition at line 90 of file ShrinkWrap.cpp.
|
static |
Helper function to find the immediate (post) dominator.
Definition at line 322 of file ShrinkWrap.cpp.
|
static |
Definition at line 453 of file ShrinkWrap.cpp.
References llvm::dbgs(), DEBUG_TYPE, llvm::MachineOptimizationRemarkEmitter::emit(), LLVM_DEBUG, and MBB.
STATISTIC | ( | NumCandidates | , |
"Number of shrink-wrapping candidates" | |||
) |
STATISTIC | ( | NumCandidatesDropped | , |
"Number of shrink-wrapping candidates dropped because of frequency" | |||
) |
STATISTIC | ( | NumFunc | , |
"Number of functions" | |||
) |
|
static |