LLVM: llvm::BranchFolder Class Reference (original) (raw)
#include "[CodeGen/BranchFolding.h](BranchFolding%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| BranchFolder (bool DefaultEnableTailMerge, bool CommonHoist, MBFIWrapper &FreqInfo, const MachineBranchProbabilityInfo &ProbInfo, ProfileSummaryInfo *PSI, unsigned MinTailLength=0) | |
| bool | OptimizeFunction (MachineFunction &MF, const TargetInstrInfo *tii, const TargetRegisterInfo *tri, MachineLoopInfo *mli=nullptr, bool AfterPlacement=false) |
| Perhaps branch folding, tail merging and other CFG optimizations on the given function. |
Definition at line 31 of file BranchFolding.h.
◆ OptimizeFunction()
Perhaps branch folding, tail merging and other CFG optimizations on the given function.
Block placement changes the layout and may create new tail merging opportunities.
Definition at line 205 of file BranchFolding.cpp.
References llvm::getEHScopeMembership(), llvm::MachineFunction::getJumpTableInfo(), llvm::MachineJumpTableInfo::getJumpTables(), llvm::MachineFunction::getRegInfo(), I, llvm::MachineJumpTableInfo::RemoveJumpTable(), llvm::BitVector::set(), llvm::BitVector::size(), TailMergeSize, llvm::BitVector::test(), and llvm::MachineRegisterInfo::tracksLiveness().
The documentation for this class was generated from the following files:
- lib/CodeGen/BranchFolding.h
- lib/CodeGen/BranchFolding.cpp