LLVM
8.0.1
|
Run instruction simplification across each instruction in the function. More...
#include "llvm/Transforms/Scalar/InstSimplifyPass.h"
Public Member Functions | |
PreservedAnalyses | run (Function &F, FunctionAnalysisManager &AM) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< InstSimplifyPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. More... | |
Run instruction simplification across each instruction in the function.
Instruction simplification has useful constraints in some contexts:
Many passes use instruction simplification as a library facility, but it may also be useful (in tests and other contexts) to have access to this very restricted transform at a pass granularity. However, for a much more powerful and comprehensive peephole optimization engine, see the instcombine
pass instead.
Definition at line 35 of file InstSimplifyPass.h.
PreservedAnalyses InstSimplifyPass::run | ( | Function & | F, |
FunctionAnalysisManager & | AM | ||
) |
Definition at line 129 of file InstSimplifyPass.cpp.
References llvm::PreservedAnalyses::all(), F(), llvm::Module::getDataLayout(), llvm::GlobalValue::getParent(), llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), llvm::PreservedAnalyses::preserveSet(), and runImpl().