LLVM  6.0.0svn
Macros | Functions | Variables
SimplifyInstructions.cpp File Reference
#include "llvm/Transforms/Utils/SimplifyInstructions.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/OptimizationDiagnosticInfo.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/Scalar.h"
#include "llvm/Transforms/Utils/Local.h"
Include dependency graph for SimplifyInstructions.cpp:

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 (InstSimplifier, "instsimplify", "Remove redundant instructions", false, false) INITIALIZE_PASS_END(InstSimplifier
 

Variables

 instsimplify
 
Remove redundant instructions
 
Remove redundant false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "instsimplify"

Definition at line 34 of file SimplifyInstructions.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( InstSimplifier  ,
"instsimplify"  ,
"Remove redundant instructions ,
false  ,
false   
)

Referenced by runImpl().

◆ runImpl()

static bool runImpl ( Function F,
const SimplifyQuery SQ,
OptimizationRemarkEmitter ORE 
)
static

◆ STATISTIC()

STATISTIC ( NumSimplified  ,
"Number of redundant instructions removed"   
)

Variable Documentation

◆ false

Remove redundant false

Definition at line 128 of file SimplifyInstructions.cpp.

◆ instructions

Remove redundant instructions

Definition at line 128 of file SimplifyInstructions.cpp.

◆ instsimplify

instsimplify

Definition at line 128 of file SimplifyInstructions.cpp.