|
LLVM
8.0.1
|
#include "llvm/Transforms/Scalar/LoopPredication.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/BranchProbabilityInfo.h"#include "llvm/Analysis/GuardUtils.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/Analysis/LoopPass.h"#include "llvm/Analysis/ScalarEvolution.h"#include "llvm/Analysis/ScalarEvolutionExpander.h"#include "llvm/Analysis/ScalarEvolutionExpressions.h"#include "llvm/IR/Function.h"#include "llvm/IR/GlobalValue.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Module.h"#include "llvm/IR/PatternMatch.h"#include "llvm/Pass.h"#include "llvm/Support/Debug.h"#include "llvm/Transforms/Scalar.h"#include "llvm/Transforms/Utils/LoopUtils.h"
Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "loop-predication" |
Functions | |
| STATISTIC (TotalConsidered, "Number of guards considered") | |
| STATISTIC (TotalWidened, "Number of checks widened") | |
| INITIALIZE_PASS_BEGIN (LoopPredicationLegacyPass, "loop-predication", "Loop predication", false, false) INITIALIZE_PASS_END(LoopPredicationLegacyPass | |
Variables | |
| static cl::opt< bool > | EnableIVTruncation ("loop-predication-enable-iv-truncation", cl::Hidden, cl::init(true)) |
| static cl::opt< bool > | EnableCountDownLoop ("loop-predication-enable-count-down-loop", cl::Hidden, cl::init(true)) |
| static cl::opt< bool > | SkipProfitabilityChecks ("loop-predication-skip-profitability-checks", cl::Hidden, cl::init(false)) |
| static cl::opt< float > | LatchExitProbabilityScale ("loop-predication-latch-probability-scale", cl::Hidden, cl::init(2.0), cl::desc("scale factor for the latch probability. Value should be greater " "than 1. Lower values are ignored")) |
| loop | predication |
| loop Loop | false |
| #define DEBUG_TYPE "loop-predication" |
Definition at line 199 of file LoopPredication.cpp.
| INITIALIZE_PASS_BEGIN | ( | LoopPredicationLegacyPass | , |
| "loop-predication" | , | ||
| "Loop predication" | , | ||
| false | , | ||
| false | |||
| ) |
| STATISTIC | ( | TotalConsidered | , |
| "Number of guards considered" | |||
| ) |
| STATISTIC | ( | TotalWidened | , |
| "Number of checks widened" | |||
| ) |
|
static |
Referenced by llvm::LoopPredicationPass::run().
|
static |
Referenced by llvm::LoopPredicationPass::run().
| loop Loop false |
Definition at line 337 of file LoopPredication.cpp.
|
static |
| loop Loop predication |
Definition at line 337 of file LoopPredication.cpp.
|
static |
1.8.13