|
LLVM 24.0.0git
|
#include "llvm/CodeGen/EarlyIfConversion.h"#include "CodeGenOptions.h"#include "llvm/ADT/BitVector.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/PostOrderIterator.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/SparseSet.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/OptimizationRemarkEmitter.h"#include "llvm/CodeGen/MachineBasicBlock.h"#include "llvm/CodeGen/MachineBranchProbabilityInfo.h"#include "llvm/CodeGen/MachineDominators.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineLoopInfo.h"#include "llvm/CodeGen/MachineMemOperand.h"#include "llvm/CodeGen/MachineOptimizationRemarkEmitter.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/MachineTraceMetrics.h"#include "llvm/CodeGen/PseudoSourceValue.h"#include "llvm/CodeGen/Register.h"#include "llvm/CodeGen/RegisterClassInfo.h"#include "llvm/CodeGen/TargetInstrInfo.h"#include "llvm/CodeGen/TargetRegisterInfo.h"#include "llvm/CodeGen/TargetSubtargetInfo.h"#include "llvm/InitializePasses.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "early-ifcvt" |
| #define | DEBUG_TYPE "early-if-predicator" |
Functions | |
| STATISTIC (NumDiamondsSeen, "Number of diamonds") | |
| STATISTIC (NumDiamondsConv, "Number of diamonds converted") | |
| STATISTIC (NumTrianglesSeen, "Number of triangles") | |
| STATISTIC (NumTrianglesConv, "Number of triangles converted") | |
| STATISTIC (NumDataDependant, "Number of data dependent conditional branches encountered") | |
| STATISTIC (NumLikelyBiased, "Number of branches with a hot path encountered") | |
| STATISTIC (NumStronglyBiased, "Number of branches with reduced critical-path budget") | |
| static bool | hasSameValue (const MachineRegisterInfo &MRI, const TargetInstrInfo *TII, Register TReg, Register FReg) |
| INITIALIZE_PASS_BEGIN (EarlyIfConverterLegacy, DEBUG_TYPE, "Early If Converter", false, false) INITIALIZE_PASS_END(EarlyIfConverterLegacy | |
| static bool | isConstantPoolLoad (const MachineInstr *MI) |
| static unsigned | adjCycles (unsigned Cyc, int Delta) |
| INITIALIZE_PASS_BEGIN (EarlyIfPredicator, DEBUG_TYPE, "Early If Predicator", false, false) INITIALIZE_PASS_END(EarlyIfPredicator | |
Variables | |
| DEBUG_TYPE | |
| Early If | Converter |
| Early If | false |
| Early If | Predicator |
| #define DEBUG_TYPE "early-ifcvt" |
Definition at line 50 of file EarlyIfConversion.cpp.
| #define DEBUG_TYPE "early-if-predicator" |
Definition at line 50 of file EarlyIfConversion.cpp.
Definition at line 1108 of file EarlyIfConversion.cpp.
|
static |
Definition at line 567 of file EarlyIfConversion.cpp.
References llvm::any_of(), llvm::MachineInstr::findRegisterDefOperandIdx(), llvm::MachineInstr::hasUnmodeledSideEffects(), llvm::MachineInstr::isDereferenceableInvariantLoad(), llvm::Register::isVirtual(), llvm::MachineInstr::mayLoadOrStore(), MRI, TII, and llvm::MachineInstr::uses().
| INITIALIZE_PASS_BEGIN | ( | EarlyIfConverterLegacy | , |
| DEBUG_TYPE | , | ||
| "Early If Converter" | , | ||
| false | , | ||
| false | ) |
References DEBUG_TYPE, and INITIALIZE_PASS_DEPENDENCY.
| INITIALIZE_PASS_BEGIN | ( | EarlyIfPredicator | , |
| DEBUG_TYPE | , | ||
| "Early If Predicator" | , | ||
| false | , | ||
| false | ) |
References DEBUG_TYPE, and INITIALIZE_PASS_DEPENDENCY.
|
static |
Definition at line 873 of file EarlyIfConversion.cpp.
References llvm::any_of(), and MI.
| STATISTIC | ( | NumDiamondsConv | , |
| "Number of diamonds converted" | ) |
| STATISTIC | ( | NumDiamondsSeen | , |
| "Number of diamonds" | ) |
| STATISTIC | ( | NumLikelyBiased | , |
| "Number of branches with a hot path encountered" | ) |
| STATISTIC | ( | NumStronglyBiased | , |
| "Number of branches with reduced critical-path budget" | ) |
| STATISTIC | ( | NumTrianglesConv | , |
| "Number of triangles converted" | ) |
| STATISTIC | ( | NumTrianglesSeen | , |
| "Number of triangles" | ) |
| Early If Converter |
Definition at line 819 of file EarlyIfConversion.cpp.
Referenced by llvm::slpvectorizer::convertTo(), createInterfaceFile(), llvm::slpvectorizer::InstructionsState::getMatchingMainOpOrAltOp(), and llvm::slpvectorizer::InstructionsState::isCopyableElement().
| DEBUG_TYPE |
Definition at line 819 of file EarlyIfConversion.cpp.
| Early If false |
Definition at line 820 of file EarlyIfConversion.cpp.
| Early If Predicator |
Definition at line 1494 of file EarlyIfConversion.cpp.