Home
last modified time | relevance | path

Searched refs:LazyValueInfo (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm/include/llvm/Analysis/
DLazyValueInfo.h32 class LazyValueInfo {
38 LazyValueInfo(const LazyValueInfo&) = delete;
39 void operator=(const LazyValueInfo&) = delete;
41 ~LazyValueInfo();
42 LazyValueInfo() {} in LazyValueInfo() function
43 LazyValueInfo(AssumptionCache *AC_, TargetLibraryInfo *TLI_, in LazyValueInfo() function
46 LazyValueInfo(LazyValueInfo &&Arg) in LazyValueInfo() function
50 LazyValueInfo &operator=(LazyValueInfo &&Arg) {
108 typedef LazyValueInfo Result;
129 LazyValueInfo &getLVI();
[all …]
/external/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp71 static bool processSelect(SelectInst *S, LazyValueInfo *LVI) { in processSelect()
94 static bool processPHI(PHINode *P, LazyValueInfo *LVI) { in processPHI()
136 LazyValueInfo::False) in processPHI()
162 static bool processMemAccess(Instruction *I, LazyValueInfo *LVI) { in processMemAccess()
183 static bool processCmp(CmpInst *C, LazyValueInfo *LVI) { in processCmp()
197 LazyValueInfo::Tristate Result = in processCmp()
199 if (Result == LazyValueInfo::Unknown) return false; in processCmp()
202 if (Result == LazyValueInfo::True) in processCmp()
218 static bool processSwitch(SwitchInst *SI, LazyValueInfo *LVI) { in processSwitch()
240 LazyValueInfo::Tristate State = LazyValueInfo::Unknown; in processSwitch()
[all …]
DJumpThreading.cpp164 LazyValueInfo *LVI_, bool HasProfileData_, in runImpl()
562 LazyValueInfo::Tristate in ComputeValueKnownInPredecessors()
566 if (ResT == LazyValueInfo::Unknown) in ComputeValueKnownInPredecessors()
588 LazyValueInfo::Tristate Res = in ComputeValueKnownInPredecessors()
591 if (Res == LazyValueInfo::Unknown) in ComputeValueKnownInPredecessors()
815 LazyValueInfo::Tristate Ret = in ProcessBlock()
818 if (Ret != LazyValueInfo::Unknown) { in ProcessBlock()
819 unsigned ToRemove = Ret == LazyValueInfo::True ? 1 : 0; in ProcessBlock()
820 unsigned ToKeep = Ret == LazyValueInfo::True ? 0 : 1; in ProcessBlock()
829 auto *CI = Ret == LazyValueInfo::True ? in ProcessBlock()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DLazyValueInfo.h32 class LazyValueInfo {
39 LazyValueInfo(const LazyValueInfo&) = delete;
40 void operator=(const LazyValueInfo&) = delete;
42 ~LazyValueInfo();
43 LazyValueInfo() {} in LazyValueInfo() function
44 LazyValueInfo(AssumptionCache *AC_, const DataLayout *DL_, TargetLibraryInfo *TLI_, in LazyValueInfo() function
47 LazyValueInfo(LazyValueInfo &&Arg) in LazyValueInfo() function
51 LazyValueInfo &operator=(LazyValueInfo &&Arg) {
134 typedef LazyValueInfo Result;
155 LazyValueInfo &getLVI();
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp105 static bool processSelect(SelectInst *S, LazyValueInfo *LVI) { in processSelect()
139 static bool simplifyCommonValuePhi(PHINode *P, LazyValueInfo *LVI, in simplifyCommonValuePhi()
184 static bool processPHI(PHINode *P, LazyValueInfo *LVI, DominatorTree *DT, in processPHI()
227 LazyValueInfo::False) in processPHI()
254 static bool processMemAccess(Instruction *I, LazyValueInfo *LVI) { in processMemAccess()
275 static bool processCmp(CmpInst *C, LazyValueInfo *LVI) { in processCmp()
289 LazyValueInfo::Tristate Result = in processCmp()
291 if (Result == LazyValueInfo::Unknown) return false; in processCmp()
294 if (Result == LazyValueInfo::True) in processCmp()
310 static bool processSwitch(SwitchInst *SI, LazyValueInfo *LVI, DominatorTree *DT) { in processSwitch()
[all …]
DJumpThreading.cpp338 LazyValueInfo *LVI_, AliasAnalysis *AA_, in runImpl()
786 LazyValueInfo::Tristate in ComputeValueKnownInPredecessors()
790 if (ResT == LazyValueInfo::Unknown) in ComputeValueKnownInPredecessors()
816 LazyValueInfo::Tristate Res = in ComputeValueKnownInPredecessors()
819 if (Res == LazyValueInfo::Unknown) in ComputeValueKnownInPredecessors()
1134 LazyValueInfo::Tristate Ret = in ProcessBlock()
1137 if (Ret != LazyValueInfo::Unknown) { in ProcessBlock()
1138 unsigned ToRemove = Ret == LazyValueInfo::True ? 1 : 0; in ProcessBlock()
1139 unsigned ToKeep = Ret == LazyValueInfo::True ? 0 : 1; in ProcessBlock()
1154 auto *CI = Ret == LazyValueInfo::True ? in ProcessBlock()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DLazyValueInfo.h27 class LazyValueInfo : public FunctionPass {
30 LazyValueInfo(const LazyValueInfo&); // DO NOT IMPLEMENT.
31 void operator=(const LazyValueInfo&); // DO NOT IMPLEMENT.
34 LazyValueInfo() : FunctionPass(ID), PImpl(0) { in LazyValueInfo() function
37 ~LazyValueInfo() { assert(PImpl == 0 && "releaseMemory not called"); } in ~LazyValueInfo()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp34 LazyValueInfo *LVI;
50 AU.addRequired<LazyValueInfo>(); in getAnalysisUsage()
58 INITIALIZE_PASS_DEPENDENCY(LazyValueInfo) in INITIALIZE_PASS_DEPENDENCY() argument
152 LazyValueInfo::Tristate Result = LVI->getPredicateOnEdge(C->getPredicate(), in processCmp()
154 if (Result == LazyValueInfo::Unknown) return false; in processCmp()
158 LazyValueInfo::Tristate Res = LVI->getPredicateOnEdge(C->getPredicate(), in processCmp()
166 if (Result == LazyValueInfo::True) in processCmp()
177 LVI = &getAnalysis<LazyValueInfo>(); in runOnFunction()
DJumpThreading.cpp78 LazyValueInfo *LVI;
108 AU.addRequired<LazyValueInfo>(); in getAnalysisUsage()
109 AU.addPreserved<LazyValueInfo>(); in getAnalysisUsage()
135 INITIALIZE_PASS_DEPENDENCY(LazyValueInfo) in INITIALIZE_PASS_DEPENDENCY() argument
147 LVI = &getAnalysis<LazyValueInfo>(); in runOnFunction()
482 LazyValueInfo::Tristate in ComputeValueKnownInPredecessors()
485 if (ResT == LazyValueInfo::Unknown) in ComputeValueKnownInPredecessors()
509 LazyValueInfo::Tristate Res = in ComputeValueKnownInPredecessors()
512 if (Res == LazyValueInfo::Unknown) in ComputeValueKnownInPredecessors()
740 LazyValueInfo::Tristate Baseline = in ProcessBlock()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DLazyValueInfo.cpp1498 LazyValueInfo &LazyValueInfoWrapperPass::getLVI() { return Info; } in getLVI()
1500 LazyValueInfo::~LazyValueInfo() { releaseMemory(); } in ~LazyValueInfo()
1502 void LazyValueInfo::releaseMemory() { in releaseMemory()
1510 bool LazyValueInfo::invalidate(Function &F, const PreservedAnalyses &PA, in invalidate()
1524 LazyValueInfo LazyValueAnalysis::run(Function &F, in run()
1530 return LazyValueInfo(&AC, &F.getParent()->getDataLayout(), &TLI, DT); in run()
1547 Constant *LazyValueInfo::getConstant(Value *V, BasicBlock *BB, in getConstant()
1567 ConstantRange LazyValueInfo::getConstantRange(Value *V, BasicBlock *BB, in getConstantRange()
1587 Constant *LazyValueInfo::getConstantOnEdge(Value *V, BasicBlock *FromBB, in getConstantOnEdge()
1604 ConstantRange LazyValueInfo::getConstantRangeOnEdge(Value *V, in getConstantRangeOnEdge()
[all …]
DCMakeLists.txt44 LazyValueInfo.cpp
/external/llvm/lib/Analysis/
DLazyValueInfo.cpp1460 LazyValueInfo &LazyValueInfoWrapperPass::getLVI() { return Info; } in getLVI()
1462 LazyValueInfo::~LazyValueInfo() { releaseMemory(); } in ~LazyValueInfo()
1464 void LazyValueInfo::releaseMemory() { in releaseMemory()
1474 LazyValueInfo LazyValueAnalysis::run(Function &F, FunctionAnalysisManager &FAM) { in run()
1479 return LazyValueInfo(&AC, &TLI, DT); in run()
1482 Constant *LazyValueInfo::getConstant(Value *V, BasicBlock *BB, in getConstant()
1498 ConstantRange LazyValueInfo::getConstantRange(Value *V, BasicBlock *BB, in getConstantRange()
1515 Constant *LazyValueInfo::getConstantOnEdge(Value *V, BasicBlock *FromBB, in getConstantOnEdge()
1532 static LazyValueInfo::Tristate getPredicateResult(unsigned Pred, Constant *C, in getPredicateResult()
1543 return ResCI->isZero() ? LazyValueInfo::False : LazyValueInfo::True; in getPredicateResult()
[all …]
DCMakeLists.txt42 LazyValueInfo.cpp
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h41 class LazyValueInfo; variable
79 LazyValueInfo *LVI;
111 bool runImpl(Function &F, TargetLibraryInfo *TLI_, LazyValueInfo *LVI_,
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLazyValueInfo.cpp35 char LazyValueInfo::ID = 0;
36 INITIALIZE_PASS(LazyValueInfo, "lazy-value-info",
40 FunctionPass *createLazyValueInfoPass() { return new LazyValueInfo(); } in createLazyValueInfoPass()
1007 bool LazyValueInfo::runOnFunction(Function &F) { in runOnFunction()
1016 void LazyValueInfo::releaseMemory() { in releaseMemory()
1024 Constant *LazyValueInfo::getConstant(Value *V, BasicBlock *BB) { in getConstant()
1039 Constant *LazyValueInfo::getConstantOnEdge(Value *V, BasicBlock *FromBB, in getConstantOnEdge()
1056 LazyValueInfo::Tristate
1057 LazyValueInfo::getPredicateOnEdge(unsigned Pred, Value *V, Constant *C, in getPredicateOnEdge()
1121 void LazyValueInfo::threadEdge(BasicBlock *PredBB, BasicBlock *OldSucc, in threadEdge()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/JumpThreading/
Dconservative-lvi.ll5 ; LazyValueInfo would previously fail to analyze the value of %arg in arg2neg
35 ; arg2neg has an edge back to itself. If LazyValueInfo is not careful when
/external/llvm/test/Transforms/JumpThreading/
Dconservative-lvi.ll5 ; LazyValueInfo would previously fail to analyze the value of %arg in arg2neg
35 ; arg2neg has an edge back to itself. If LazyValueInfo is not careful when
/external/llvm/include/llvm/Transforms/Scalar/
DJumpThreading.h61 LazyValueInfo *LVI;
97 bool runImpl(Function &F, TargetLibraryInfo *TLI_, LazyValueInfo *LVI_,
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h47 class LazyValueInfo; variable
312 bool removeUnreachableBlocks(Function &F, LazyValueInfo *LVI = nullptr);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DLocal.h51 class LazyValueInfo; variable
382 bool removeUnreachableBlocks(Function &F, LazyValueInfo *LVI = nullptr,
/external/llvm/lib/Transforms/Utils/
DLocal.cpp1550 bool llvm::removeUnreachableBlocks(Function &F, LazyValueInfo *LVI) { in removeUnreachableBlocks()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLocal.cpp2207 bool llvm::removeUnreachableBlocks(Function &F, LazyValueInfo *LVI, in removeUnreachableBlocks()
/external/swiftshader/third_party/llvm-7.0/
DAndroid.mk53 llvm/lib/Analysis/LazyValueInfo.cpp \
DBUILD.gn154 "llvm/lib/Analysis/LazyValueInfo.cpp",
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/
DREADME.txt1952 This is a because the client of LazyValueInfo doesn't simplify all instruction

12