Intel® Implicit SPMD Program Compiler (Intel® ISPC)
1.13.0
|
Public Member Functions | |
InstructionSimplifyPass () | |
llvm::StringRef | getPassName () const |
bool | runOnBasicBlock (llvm::BasicBlock &BB) |
bool | runOnFunction (llvm::Function &F) |
Static Public Attributes | |
static char | ID = 0 |
Static Private Member Functions | |
static bool | simplifySelect (llvm::SelectInst *selectInst, llvm::BasicBlock::iterator iter) |
static llvm::Value * | simplifyBoolVec (llvm::Value *value) |
static bool | simplifyCall (llvm::CallInst *callInst, llvm::BasicBlock::iterator iter) |
This simple optimization pass looks for a vector select instruction with an all-on or all-off constant mask, simplifying it to the appropriate operand if so.
|
inline |
bool InstructionSimplifyPass::runOnBasicBlock | ( | llvm::BasicBlock & | BB | ) |
Definition at line 1080 of file opt.cpp.
References DEBUG_END_PASS, and DEBUG_START_PASS.
bool InstructionSimplifyPass::runOnFunction | ( | llvm::Function & | F | ) |
|
staticprivate |
Definition at line 990 of file opt.cpp.
References LLVMTypes::Int1VectorType.
|
staticprivate |
Definition at line 1064 of file opt.cpp.
References lGetMask(), LLVMInt64(), m, and Module::module.
|
staticprivate |