|
LLVM 22.0.0git
|
#include "llvm/Transforms/Scalar/InstSimplifyPass.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/AssumptionCache.h"#include "llvm/Analysis/InstructionSimplify.h"#include "llvm/Analysis/TargetLibraryInfo.h"#include "llvm/IR/Dominators.h"#include "llvm/IR/Function.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"#include "llvm/Transforms/Scalar.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) |
| 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 24 of file InstSimplifyPass.cpp.
| INITIALIZE_PASS_BEGIN | ( | InstSimplifyLegacyPass | , |
| "instsimplify" | , | ||
| "Remove redundant instructions" | , | ||
| false | , | ||
| false | ) |
References INITIALIZE_PASS_DEPENDENCY.
|
static |
Definition at line 28 of file InstSimplifyPass.cpp.
References llvm::cast(), Changed, llvm::SmallPtrSetImpl< PtrType >::count(), llvm::SimplifyQuery::DT, llvm::SmallPtrSetImplBase::empty(), F, I, llvm::isInstructionTriviallyDead(), llvm::DominatorTree::isReachableFromEntry(), llvm::Next, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::RecursivelyDeleteTriviallyDeadInstructions(), S1, llvm::simplifyInstruction(), std::swap(), and llvm::SimplifyQuery::TLI.
| STATISTIC | ( | NumSimplified | , |
| "Number of redundant instructions removed" | ) |
| Remove redundant false |
Definition at line 116 of file InstSimplifyPass.cpp.
| Remove redundant instructions |
Definition at line 116 of file InstSimplifyPass.cpp.
| instsimplify |
Definition at line 115 of file InstSimplifyPass.cpp.