/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 105 static bool processSelect(SelectInst *S, LazyValueInfo *LVI) { in processSelect() argument 109 Constant *C = LVI->getConstant(S->getCondition(), S->getParent(), S); in processSelect() 139 static bool simplifyCommonValuePhi(PHINode *P, LazyValueInfo *LVI, in simplifyCommonValuePhi() argument 172 if (C != LVI->getConstantOnEdge(CommonValue, IncomingBB, ToBB, P)) in simplifyCommonValuePhi() 184 static bool processPHI(PHINode *P, LazyValueInfo *LVI, DominatorTree *DT, in processPHI() argument 193 Value *V = LVI->getConstantOnEdge(Incoming, P->getIncomingBlock(i), BB, P); in processPHI() 205 if (Constant *C = LVI->getConstantOnEdge( in processPHI() 225 if (LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C, in processPHI() 246 Changed = simplifyCommonValuePhi(P, LVI, DT); in processPHI() 254 static bool processMemAccess(Instruction *I, LazyValueInfo *LVI) { in processMemAccess() argument [all …]
|
D | JumpThreading.cpp | 286 auto LVI = &getAnalysis<LazyValueInfoWrapperPass>().getLVI(); in runOnFunction() local 298 bool Changed = Impl.runImpl(F, TLI, LVI, AA, &DDT, HasProfileData, in runOnFunction() 302 LVI->printLVI(F, *DT, dbgs()); in runOnFunction() 313 auto &LVI = AM.getResult<LazyValueAnalysis>(F); in run() local 325 bool Changed = runImpl(F, &TLI, &LVI, &AA, &DDT, HasProfileData, in run() 344 LVI = LVI_; in runImpl() 392 LVI->eraseBlock(&BB); in runImpl() 410 LVI->eraseBlock(&BB); in runImpl() 419 LVI->enableDT(); in runImpl() 613 LVI->disableDT(); in ComputeValueKnownInPredecessors() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 71 static bool processSelect(SelectInst *S, LazyValueInfo *LVI) { in processSelect() argument 75 Constant *C = LVI->getConstant(S->getOperand(0), S->getParent(), S); in processSelect() 94 static bool processPHI(PHINode *P, LazyValueInfo *LVI) { in processPHI() argument 102 Value *V = LVI->getConstantOnEdge(Incoming, P->getIncomingBlock(i), BB, P); in processPHI() 114 if (Constant *C = LVI->getConstantOnEdge( in processPHI() 134 if (LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C, in processPHI() 162 static bool processMemAccess(Instruction *I, LazyValueInfo *LVI) { in processMemAccess() argument 171 Constant *C = LVI->getConstant(Pointer, I->getParent(), I); in processMemAccess() 183 static bool processCmp(CmpInst *C, LazyValueInfo *LVI) { in processCmp() argument 198 LVI->getPredicateAt(C->getPredicate(), Op0, Op1, C); in processCmp() [all …]
|
D | JumpThreading.cpp | 123 auto LVI = &getAnalysis<LazyValueInfoWrapperPass>().getLVI(); in runOnFunction() local 132 return Impl.runImpl(F, TLI, LVI, HasProfileData, std::move(BFI), in runOnFunction() 140 auto &LVI = AM.getResult<LazyValueAnalysis>(F); in run() local 150 runImpl(F, &TLI, &LVI, HasProfileData, std::move(BFI), std::move(BPI)); in run() 170 LVI = LVI_; in runImpl() 189 EverChanged |= removeUnreachableBlocks(F, LVI); in runImpl() 211 LVI->eraseBlock(BB); in runImpl() 239 LVI->eraseBlock(BB); in runImpl() 418 Constant *PredCst = LVI->getConstantOnEdge(V, P, BB, CxtI); in ComputeValueKnownInPredecessors() 433 Constant *CI = LVI->getConstantOnEdge(InVal, in ComputeValueKnownInPredecessors() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 34 LazyValueInfo *LVI; member in __anon9176a8100111::CorrelatedValuePropagation 71 Constant *C = LVI->getConstant(S->getOperand(0), S->getParent()); in processSelect() 98 Constant *C = LVI->getConstantOnEdge(P->getIncomingValue(i), in processPHI() 127 Constant *C = LVI->getConstant(Pointer, I->getParent()); in processMemAccess() 152 LazyValueInfo::Tristate Result = LVI->getPredicateOnEdge(C->getPredicate(), in processCmp() 158 LazyValueInfo::Tristate Res = LVI->getPredicateOnEdge(C->getPredicate(), in processCmp() 177 LVI = &getAnalysis<LazyValueInfo>(); in runOnFunction()
|
D | JumpThreading.cpp | 78 LazyValueInfo *LVI; member in __anon5b07ffbc0111::JumpThreading 147 LVI = &getAnalysis<LazyValueInfo>(); in runOnFunction() 169 LVI->eraseBlock(BB); in runOnFunction() 194 LVI->eraseBlock(BB); in runOnFunction() 354 Constant *PredCst = LVI->getConstantOnEdge(V, P, BB); in ComputeValueKnownInPredecessors() 369 Constant *CI = LVI->getConstantOnEdge(InVal, in ComputeValueKnownInPredecessors() 483 ResT = LVI->getPredicateOnEdge(Cmp->getPredicate(), LHS, in ComputeValueKnownInPredecessors() 510 LVI->getPredicateOnEdge(Cmp->getPredicate(), Cmp->getOperand(0), in ComputeValueKnownInPredecessors() 577 Constant *CI = LVI->getConstant(V, BB); in ComputeValueKnownInPredecessors() 645 LVI->eraseBlock(SinglePred); in ProcessBlock() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | SplitKit.cpp | 155 LiveInterval::const_iterator LVI = CurLI->begin(); in calcLiveBlockInfo() local 163 MachineFunction::iterator MFI = LIS.getMBBFromIndex(LVI->start); in calcLiveBlockInfo() 178 if (LVI->end < Stop) in calcLiveBlockInfo() 190 BI.LiveIn = LVI->start <= Start; in calcLiveBlockInfo() 194 assert(LVI->start == LVI->valno->def && "Dangling LiveRange start"); in calcLiveBlockInfo() 195 assert(LVI->start == BI.FirstInstr && "First instr should be a def"); in calcLiveBlockInfo() 201 while (LVI->end < Stop) { in calcLiveBlockInfo() 202 SlotIndex LastStop = LVI->end; in calcLiveBlockInfo() 203 if (++LVI == LVE || LVI->start >= Stop) { in calcLiveBlockInfo() 209 if (LastStop < LVI->start) { in calcLiveBlockInfo() [all …]
|
D | MachineVerifier.cpp | 1008 for (LiveIntervals::const_iterator LVI = LiveInts->begin(), in verifyLiveIntervals() local 1009 LVE = LiveInts->end(); LVI != LVE; ++LVI) { in verifyLiveIntervals() 1010 const LiveInterval &LI = *LVI->second; in verifyLiveIntervals() 1021 assert(LVI->first == LI.reg && "Invalid reg to interval mapping"); in verifyLiveIntervals()
|
/external/llvm/lib/CodeGen/ |
D | SplitKit.cpp | 192 LiveInterval::const_iterator LVI = CurLI->begin(); in calcLiveBlockInfo() local 201 LIS.getMBBFromIndex(LVI->start)->getIterator(); in calcLiveBlockInfo() 216 if (LVI->end < Stop) in calcLiveBlockInfo() 228 BI.LiveIn = LVI->start <= Start; in calcLiveBlockInfo() 232 assert(LVI->start == LVI->valno->def && "Dangling Segment start"); in calcLiveBlockInfo() 233 assert(LVI->start == BI.FirstInstr && "First instr should be a def"); in calcLiveBlockInfo() 239 while (LVI->end < Stop) { in calcLiveBlockInfo() 240 SlotIndex LastStop = LVI->end; in calcLiveBlockInfo() 241 if (++LVI == LVE || LVI->start >= Stop) { in calcLiveBlockInfo() 247 if (LastStop < LVI->start) { in calcLiveBlockInfo() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | SplitKit.cpp | 218 LiveInterval::const_iterator LVI = CurLI->begin(); in calcLiveBlockInfo() local 227 LIS.getMBBFromIndex(LVI->start)->getIterator(); in calcLiveBlockInfo() 242 if (LVI->end < Stop) in calcLiveBlockInfo() 254 BI.LiveIn = LVI->start <= Start; in calcLiveBlockInfo() 258 assert(LVI->start == LVI->valno->def && "Dangling Segment start"); in calcLiveBlockInfo() 259 assert(LVI->start == BI.FirstInstr && "First instr should be a def"); in calcLiveBlockInfo() 265 while (LVI->end < Stop) { in calcLiveBlockInfo() 266 SlotIndex LastStop = LVI->end; in calcLiveBlockInfo() 267 if (++LVI == LVE || LVI->start >= Stop) { in calcLiveBlockInfo() 273 if (LastStop < LVI->start) { in calcLiveBlockInfo() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/LazyValueAnalysis/ |
D | lvi-after-jumpthreading.ll | 3 ; Testing LVI cache after jump-threading 11 ; CHECK-LABEL: LVI for function 'test1': 47 ; CHECK-LABEL: LVI for function 'test2': 105 ; LVI info as LVI info for the beginning of do block. LVI info for %i is Range[0,1) 108 ; CHECK-LABEL: LVI for function 'test3': 152 ; When we do so, LVI for cont cannot be the one for the merged do block. 154 ; CHECK-LABEL: LVI for function 'test4':
|
D | invalidation.ll | 2 ; away. Sadly, you can neither print nor verify LVI so we just have to require
|
/external/llvm/include/llvm/Transforms/Scalar/ |
D | JumpThreading.h | 61 LazyValueInfo *LVI; variable 90 : TLI(Other.TLI), LVI(Other.LVI), BFI(std::move(Other.BFI)), in JumpThreadingPass()
|
/external/llvm/test/Transforms/JumpThreading/ |
D | thread-cmp.ll | 2 ; When simplify a branch based on LVI predicates, we should replace the 28 ; but that's a CSE problem, not a LVI/jump threading problem)
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/JumpThreading/ |
D | thread-cmp.ll | 2 ; When simplify a branch based on LVI predicates, we should replace the 28 ; but that's a CSE problem, not a LVI/jump threading problem)
|
D | guards.ll | 187 ; LVI uses guard to identify value of %c2 in branch as true, we cannot replace that
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/CorrelatedValuePropagation/ |
D | alloca.ll | 8 ; CHECK-NOT: LVI Getting edge value %a.i = alloca i64, align 8 at 'for.body' 9 ; CHECK-NOT: LVI Getting edge value %tmp = bitcast i64* %a.i to i8* from 'for.cond' to 'for.body'
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/GlobalDCE/ |
D | crash-assertingvh.ll | 2 ; like LVI with asserting handles into the body of a function, those don't begin
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/Inline/ |
D | clear-analyses.ll | 2 ; as LVI with references back into the IR of a function that the inliner will
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/ |
D | JumpThreading.h | 79 LazyValueInfo *LVI; variable
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Local.h | 312 bool removeUnreachableBlocks(Function &F, LazyValueInfo *LVI = nullptr);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | Local.h | 382 bool removeUnreachableBlocks(Function &F, LazyValueInfo *LVI = nullptr,
|
/external/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 1550 bool llvm::removeUnreachableBlocks(Function &F, LazyValueInfo *LVI) { in removeUnreachableBlocks() argument 1570 if (LVI) in removeUnreachableBlocks() 1571 LVI->eraseBlock(&*BB); in removeUnreachableBlocks()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 2207 bool llvm::removeUnreachableBlocks(Function &F, LazyValueInfo *LVI, in removeUnreachableBlocks() argument 2232 if (LVI) in removeUnreachableBlocks() 2233 LVI->eraseBlock(BB); in removeUnreachableBlocks()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | LazyValueInfo.cpp | 1907 auto &LVI = getAnalysis<LazyValueInfoWrapperPass>().getLVI(); in runOnFunction() local 1909 LVI.printLVI(F, DTree, dbgs()); in runOnFunction()
|