|
LLVM
8.0.1
|
#include "llvm/Transforms/Scalar/InstSimplifyPass.h"#include "llvm/ADT/DepthFirstIterator.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/AssumptionCache.h"#include "llvm/Analysis/InstructionSimplify.h"#include "llvm/Analysis/OptimizationRemarkEmitter.h"#include "llvm/Analysis/TargetLibraryInfo.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/Dominators.h"#include "llvm/IR/Function.h"#include "llvm/IR/Type.h"#include "llvm/Pass.h"#include "llvm/Transforms/Utils.h"#include "llvm/Transforms/Utils/Local.h"
Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "instsimplify" |
Functions | |
| STATISTIC (NumSimplified, "Number of redundant instructions removed") | |
| static bool | runImpl (Function &F, const SimplifyQuery &SQ, OptimizationRemarkEmitter *ORE) |
| INITIALIZE_PASS_BEGIN (InstSimplifyLegacyPass, "instsimplify", "Remove redundant instructions", false, false) INITIALIZE_PASS_END(InstSimplifyLegacyPass | |
Variables | |
| instsimplify | |
| Remove redundant | instructions |
| Remove redundant | false |
| #define DEBUG_TYPE "instsimplify" |
Definition at line 27 of file InstSimplifyPass.cpp.
| INITIALIZE_PASS_BEGIN | ( | InstSimplifyLegacyPass | , |
| "instsimplify" | , | ||
| "Remove redundant instructions" | , | ||
| false | , | ||
| false | |||
| ) |
Referenced by runImpl().
|
static |
Definition at line 31 of file InstSimplifyPass.cpp.
References llvm::AnalysisUsage::addRequired(), llvm::SmallPtrSetImpl< PtrType >::count(), llvm::depth_first(), llvm::SmallPtrSetImplBase::empty(), F(), llvm::Module::getDataLayout(), llvm::Function::getEntryBlock(), llvm::GlobalValue::getParent(), llvm::PassRegistry::getPassRegistry(), I, INITIALIZE_PASS_BEGIN(), INITIALIZE_PASS_DEPENDENCY, llvm::initializeInstSimplifyLegacyPassPass(), llvm::RecursivelyDeleteTriviallyDeadInstructions(), llvm::Value::replaceAllUsesWith(), runOnFunction(), llvm::AnalysisUsage::setPreservesCFG(), llvm::SimplifyInstruction(), std::swap(), llvm::SimplifyQuery::TLI, llvm::Value::use_empty(), and llvm::Value::users().
Referenced by llvm::InstSimplifyPass::run().
| STATISTIC | ( | NumSimplified | , |
| "Number of redundant instructions removed" | |||
| ) |
| Remove redundant false |
Definition at line 121 of file InstSimplifyPass.cpp.
| Remove redundant instructions |
Definition at line 121 of file InstSimplifyPass.cpp.
| instsimplify |
Definition at line 121 of file InstSimplifyPass.cpp.
1.8.13