Home
last modified time | relevance | path

Searched refs:BBI (Results 1 – 25 of 186) sorted by relevance

12345678

/external/llvm/lib/CodeGen/
DIfConversion.cpp149 BBInfo &BBI; member
155 : BBI(b), Kind(k), NeedSubsumption(s), NumDups(d), NumDups2(d2) {} in IfcvtToken()
198 bool ReverseBranchCondition(BBInfo &BBI);
206 void ScanInstructions(BBInfo &BBI);
209 bool FeasibilityAnalysis(BBInfo &BBI, SmallVectorImpl<MachineOperand> &Cond,
214 void RemoveExtraEdges(BBInfo &BBI);
215 bool IfConvertSimple(BBInfo &BBI, IfcvtKind Kind);
216 bool IfConvertTriangle(BBInfo &BBI, IfcvtKind Kind);
217 bool IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind,
219 void PredicateBlock(BBInfo &BBI,
[all …]
DLiveVariables.cpp712 for (const auto &BBI : MBB) { in analyzePHINodes() local
713 if (!BBI.isPHI()) in analyzePHINodes()
715 for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2) in analyzePHINodes()
716 if (BBI.getOperand(i).readsReg()) in analyzePHINodes()
717 PHIVarInfo[BBI.getOperand(i + 1).getMBB()->getNumber()] in analyzePHINodes()
718 .push_back(BBI.getOperand(i).getReg()); in analyzePHINodes()
772 MachineBasicBlock::iterator BBI = SuccBB->begin(), BBE = SuccBB->end(); in addNewBlock() local
773 for (; BBI != BBE && BBI->isPHI(); ++BBI) { in addNewBlock()
775 Defs.insert(BBI->getOperand(0).getReg()); in addNewBlock()
778 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) in addNewBlock()
[all …]
DPHIElimination.cpp538 for (const auto &BBI : MBB) { in analyzePHINodes() local
539 if (!BBI.isPHI()) in analyzePHINodes()
541 for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2) in analyzePHINodes()
542 ++VRegPHIUseCount[BBVRegPair(BBI.getOperand(i+1).getMBB()->getNumber(), in analyzePHINodes()
543 BBI.getOperand(i).getReg())]; in analyzePHINodes()
557 for (MachineBasicBlock::iterator BBI = MBB.begin(), BBE = MBB.end(); in SplitPHIEdges() local
558 BBI != BBE && BBI->isPHI(); ++BBI) { in SplitPHIEdges()
559 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) { in SplitPHIEdges()
560 unsigned Reg = BBI->getOperand(i).getReg(); in SplitPHIEdges()
561 MachineBasicBlock *PreMBB = BBI->getOperand(i+1).getMBB(); in SplitPHIEdges()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DIfConversion.cpp175 BBInfo &BBI; member
185 : BBI(b), Kind(k), NumDups(d), NumDups2(d2), NeedSubsumption(s), in IfcvtToken()
230 bool reverseBranchCondition(BBInfo &BBI) const;
248 void AnalyzeBranches(BBInfo &BBI);
249 void ScanInstructions(BBInfo &BBI,
259 bool FeasibilityAnalysis(BBInfo &BBI, SmallVectorImpl<MachineOperand> &Pred,
265 bool IfConvertSimple(BBInfo &BBI, IfcvtKind Kind);
266 bool IfConvertTriangle(BBInfo &BBI, IfcvtKind Kind);
267 bool IfConvertDiamondCommon(BBInfo &BBI, BBInfo &TrueBBI, BBInfo &FalseBBI,
271 bool IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind,
[all …]
DLiveVariables.cpp710 for (const auto &BBI : MBB) { in analyzePHINodes() local
711 if (!BBI.isPHI()) in analyzePHINodes()
713 for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2) in analyzePHINodes()
714 if (BBI.getOperand(i).readsReg()) in analyzePHINodes()
715 PHIVarInfo[BBI.getOperand(i + 1).getMBB()->getNumber()] in analyzePHINodes()
716 .push_back(BBI.getOperand(i).getReg()); in analyzePHINodes()
769 MachineBasicBlock::iterator BBI = SuccBB->begin(), BBE = SuccBB->end(); in addNewBlock() local
770 for (; BBI != BBE && BBI->isPHI(); ++BBI) { in addNewBlock()
772 Defs.insert(BBI->getOperand(0).getReg()); in addNewBlock()
775 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) in addNewBlock()
[all …]
DPHIElimination.cpp605 for (const auto &BBI : MBB) { in analyzePHINodes() local
606 if (!BBI.isPHI()) in analyzePHINodes()
608 for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2) in analyzePHINodes()
609 ++VRegPHIUseCount[BBVRegPair(BBI.getOperand(i+1).getMBB()->getNumber(), in analyzePHINodes()
610 BBI.getOperand(i).getReg())]; in analyzePHINodes()
625 for (MachineBasicBlock::iterator BBI = MBB.begin(), BBE = MBB.end(); in SplitPHIEdges() local
626 BBI != BBE && BBI->isPHI(); ++BBI) { in SplitPHIEdges()
627 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) { in SplitPHIEdges()
628 Register Reg = BBI->getOperand(i).getReg(); in SplitPHIEdges()
629 MachineBasicBlock *PreMBB = BBI->getOperand(i+1).getMBB(); in SplitPHIEdges()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DIfConversion.cpp174 BBInfo &BBI; member
184 : BBI(b), Kind(k), NumDups(d), NumDups2(d2), NeedSubsumption(s), in IfcvtToken()
229 bool reverseBranchCondition(BBInfo &BBI) const;
247 void AnalyzeBranches(BBInfo &BBI);
248 void ScanInstructions(BBInfo &BBI,
258 bool FeasibilityAnalysis(BBInfo &BBI, SmallVectorImpl<MachineOperand> &Pred,
264 bool IfConvertSimple(BBInfo &BBI, IfcvtKind Kind);
265 bool IfConvertTriangle(BBInfo &BBI, IfcvtKind Kind);
266 bool IfConvertDiamondCommon(BBInfo &BBI, BBInfo &TrueBBI, BBInfo &FalseBBI,
270 bool IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind,
[all …]
DLiveVariables.cpp710 for (const auto &BBI : MBB) { in analyzePHINodes() local
711 if (!BBI.isPHI()) in analyzePHINodes()
713 for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2) in analyzePHINodes()
714 if (BBI.getOperand(i).readsReg()) in analyzePHINodes()
715 PHIVarInfo[BBI.getOperand(i + 1).getMBB()->getNumber()] in analyzePHINodes()
716 .push_back(BBI.getOperand(i).getReg()); in analyzePHINodes()
770 MachineBasicBlock::iterator BBI = SuccBB->begin(), BBE = SuccBB->end(); in addNewBlock() local
771 for (; BBI != BBE && BBI->isPHI(); ++BBI) { in addNewBlock()
773 Defs.insert(BBI->getOperand(0).getReg()); in addNewBlock()
776 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) in addNewBlock()
[all …]
DPHIElimination.cpp553 for (const auto &BBI : MBB) { in analyzePHINodes() local
554 if (!BBI.isPHI()) in analyzePHINodes()
556 for (unsigned i = 1, e = BBI.getNumOperands(); i != e; i += 2) in analyzePHINodes()
557 ++VRegPHIUseCount[BBVRegPair(BBI.getOperand(i+1).getMBB()->getNumber(), in analyzePHINodes()
558 BBI.getOperand(i).getReg())]; in analyzePHINodes()
572 for (MachineBasicBlock::iterator BBI = MBB.begin(), BBE = MBB.end(); in SplitPHIEdges() local
573 BBI != BBE && BBI->isPHI(); ++BBI) { in SplitPHIEdges()
574 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) { in SplitPHIEdges()
575 Register Reg = BBI->getOperand(i).getReg(); in SplitPHIEdges()
576 MachineBasicBlock *PreMBB = BBI->getOperand(i+1).getMBB(); in SplitPHIEdges()
[all …]
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCPreEmitPeephole.cpp123 for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) { in removeRedundantLIs() local
126 if (InstrsToErase.find(&*BBI) != InstrsToErase.end()) in removeRedundantLIs()
129 unsigned Opc = BBI->getOpcode(); in removeRedundantLIs()
135 if (!BBI->getOperand(1).isImm()) in removeRedundantLIs()
137 assert(BBI->getOperand(0).isReg() && in removeRedundantLIs()
140 LLVM_DEBUG(dbgs() << "Scanning after load immediate: "; BBI->dump();); in removeRedundantLIs()
142 Register Reg = BBI->getOperand(0).getReg(); in removeRedundantLIs()
143 int64_t Imm = BBI->getOperand(1).getImm(); in removeRedundantLIs()
145 if (BBI->getOperand(0).isDead()) { in removeRedundantLIs()
146 DeadOrKillToUnset = &BBI->getOperand(0); in removeRedundantLIs()
[all …]
/external/llvm/unittests/Analysis/
DUnrollAnalyzer.cpp102 BasicBlock::iterator BBI = Header->begin(); in TEST() local
103 std::advance(BBI, 4); in TEST()
104 Instruction *Y1 = &*BBI++; in TEST()
105 Instruction *Y2 = &*BBI++; in TEST()
165 BasicBlock::iterator BBI = Header->begin(); in TEST() local
166 BBI++; in TEST()
167 Instruction *Y1 = &*BBI; in TEST()
168 BBI = InnerBody->begin(); in TEST()
169 BBI++; in TEST()
170 Instruction *Y2 = &*BBI; in TEST()
[all …]
/external/llvm-project/llvm/unittests/Analysis/
DUnrollAnalyzerTest.cpp102 BasicBlock::iterator BBI = Header->begin(); in TEST() local
103 std::advance(BBI, 4); in TEST()
104 Instruction *Y1 = &*BBI++; in TEST()
105 Instruction *Y2 = &*BBI++; in TEST()
165 BasicBlock::iterator BBI = Header->begin(); in TEST() local
166 BBI++; in TEST()
167 Instruction *Y1 = &*BBI; in TEST()
168 BBI = InnerBody->begin(); in TEST()
169 BBI++; in TEST()
170 Instruction *Y2 = &*BBI; in TEST()
[all …]
/external/llvm/lib/Transforms/Scalar/
DDeadStoreElimination.cpp68 deleteDeadInstruction(Instruction *I, BasicBlock::iterator *BBI, in deleteDeadInstruction() argument
78 BasicBlock::iterator NewIter = *BBI; in deleteDeadInstruction()
110 *BBI = NewIter; in deleteDeadInstruction()
616 BasicBlock::iterator BBI(Dependency); in handleFree() local
617 deleteDeadInstruction(Dependency, &BBI, *MD, *TLI); in handleFree()
626 Dep = MD->getPointerDependencyFrom(Loc, false, BBI, BB); in handleFree()
700 for (BasicBlock::iterator BBI = BB.end(); BBI != BB.begin(); ){ in handleEndBlock() local
701 --BBI; in handleEndBlock()
704 if (hasMemoryWrite(&*BBI, *TLI) && isRemovable(&*BBI)) { in handleEndBlock()
707 GetUnderlyingObjects(getStoredPointerOperand(&*BBI), Pointers, DL); in handleEndBlock()
[all …]
DTailRecursionElimination.cpp396 for (BasicBlock &BBI : *F) { in getCommonReturnValue()
397 ReturnInst *RI = dyn_cast<ReturnInst>(BBI.getTerminator()); in getCommonReturnValue()
456 BasicBlock::iterator BBI(TI); in findTRECandidate() local
458 CI = dyn_cast<CallInst>(BBI); in findTRECandidate()
462 if (BBI == BB->begin()) in findTRECandidate()
464 --BBI; in findTRECandidate()
517 BasicBlock::iterator BBI(CI); in eliminateRecursiveTailCall() local
518 for (++BBI; &*BBI != Ret; ++BBI) { in eliminateRecursiveTailCall()
519 if (canMoveAboveCall(&*BBI, CI)) continue; in eliminateRecursiveTailCall()
526 canTransformAccumulatorRecursion(&*BBI, CI))) { in eliminateRecursiveTailCall()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCPreEmitPeephole.cpp77 for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) { in removeRedundantLIs() local
80 if (InstrsToErase.find(&*BBI) != InstrsToErase.end()) in removeRedundantLIs()
83 unsigned Opc = BBI->getOpcode(); in removeRedundantLIs()
89 if (!BBI->getOperand(1).isImm()) in removeRedundantLIs()
91 assert(BBI->getOperand(0).isReg() && in removeRedundantLIs()
94 LLVM_DEBUG(dbgs() << "Scanning after load immediate: "; BBI->dump();); in removeRedundantLIs()
96 Register Reg = BBI->getOperand(0).getReg(); in removeRedundantLIs()
97 int64_t Imm = BBI->getOperand(1).getImm(); in removeRedundantLIs()
99 if (BBI->getOperand(0).isDead()) { in removeRedundantLIs()
100 DeadOrKillToUnset = &BBI->getOperand(0); in removeRedundantLIs()
[all …]
/external/llvm-project/llvm/lib/Target/ARM/
DARMBasicBlockInfo.cpp49 BasicBlockInfo &BBI = BBInfo[MBB->getNumber()]; in computeBlockSize() local
50 BBI.Size = 0; in computeBlockSize()
51 BBI.Unalign = 0; in computeBlockSize()
52 BBI.PostAlign = Align(1); in computeBlockSize()
55 BBI.Size += TII->getInstSizeInBytes(I); in computeBlockSize()
59 BBI.Unalign = isThumb ? 1 : 2; in computeBlockSize()
62 BBI.Unalign = 1; in computeBlockSize()
67 BBI.PostAlign = Align(4); in computeBlockSize()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMBasicBlockInfo.cpp49 BasicBlockInfo &BBI = BBInfo[MBB->getNumber()]; in computeBlockSize() local
50 BBI.Size = 0; in computeBlockSize()
51 BBI.Unalign = 0; in computeBlockSize()
52 BBI.PostAlign = Align::None(); in computeBlockSize()
55 BBI.Size += TII->getInstSizeInBytes(I); in computeBlockSize()
59 BBI.Unalign = isThumb ? 1 : 2; in computeBlockSize()
62 BBI.Unalign = 1; in computeBlockSize()
67 BBI.PostAlign = Align(4); in computeBlockSize()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DDeadStoreElimination.cpp101 deleteDeadInstruction(Instruction *I, BasicBlock::iterator *BBI, in deleteDeadInstruction() argument
113 BasicBlock::iterator NewIter = *BBI; in deleteDeadInstruction()
153 *BBI = NewIter; in deleteDeadInstruction()
706 BasicBlock::iterator BBI(Dependency); in handleFree() local
707 deleteDeadInstruction(Dependency, &BBI, *MD, *TLI, IOL, OBB, in handleFree()
717 Dep = MD->getPointerDependencyFrom(Loc, false, BBI, BB); in handleFree()
794 for (BasicBlock::iterator BBI = BB.end(); BBI != BB.begin(); ){ in handleEndBlock() local
795 --BBI; in handleEndBlock()
798 if (hasAnalyzableMemoryWrite(&*BBI, *TLI) && isRemovable(&*BBI)) { in handleEndBlock()
801 GetUnderlyingObjects(getStoredPointerOperand(&*BBI), Pointers, DL); in handleEndBlock()
[all …]
DTailRecursionElimination.cpp401 for (BasicBlock &BBI : *F) { in getCommonReturnValue()
402 ReturnInst *RI = dyn_cast<ReturnInst>(BBI.getTerminator()); in getCommonReturnValue()
461 BasicBlock::iterator BBI(TI); in findTRECandidate() local
463 CI = dyn_cast<CallInst>(BBI); in findTRECandidate()
467 if (BBI == BB->begin()) in findTRECandidate()
469 --BBI; in findTRECandidate()
521 BasicBlock::iterator BBI(CI); in eliminateRecursiveTailCall() local
522 for (++BBI; &*BBI != Ret; ++BBI) { in eliminateRecursiveTailCall()
523 if (canMoveAboveCall(&*BBI, CI, AA)) in eliminateRecursiveTailCall()
531 canTransformAccumulatorRecursion(&*BBI, CI))) { in eliminateRecursiveTailCall()
[all …]
/external/llvm/unittests/IR/
DDominatorTreeTest.cpp37 BasicBlock::iterator BBI = BB0->begin(); in runOnFunction() local
38 Instruction *Y1 = &*BBI++; in runOnFunction()
39 Instruction *Y2 = &*BBI++; in runOnFunction()
40 Instruction *Y3 = &*BBI++; in runOnFunction()
43 BBI = BB1->begin(); in runOnFunction()
44 Instruction *Y4 = &*BBI++; in runOnFunction()
47 BBI = BB2->begin(); in runOnFunction()
48 Instruction *Y5 = &*BBI++; in runOnFunction()
51 BBI = BB3->begin(); in runOnFunction()
52 Instruction *Y6 = &*BBI++; in runOnFunction()
[all …]
/external/llvm/lib/Analysis/
DLazyValueInfo.cpp457 bool solveBlockValueBinaryOp(LVILatticeVal &BBLV, Instruction *BBI,
459 bool solveBlockValueCast(LVILatticeVal &BBLV, Instruction *BBI,
462 Instruction *BBI);
607 static LVILatticeVal getFromRangeMetadata(Instruction *BBI) { in getFromRangeMetadata() argument
608 switch (BBI->getOpcode()) { in getFromRangeMetadata()
613 if (MDNode *Ranges = BBI->getMetadata(LLVMContext::MD_range)) in getFromRangeMetadata()
614 if (isa<IntegerType>(BBI->getType())) { in getFromRangeMetadata()
642 Instruction *BBI = dyn_cast<Instruction>(Val); in solveBlockValue() local
643 if (!BBI || BBI->getParent() != BB) { in solveBlockValue()
650 if (PHINode *PN = dyn_cast<PHINode>(BBI)) { in solveBlockValue()
[all …]
DLoads.cpp249 BasicBlock::iterator BBI = ScanFrom->getIterator(), in isSafeToLoadUnconditionally() local
256 while (BBI != E) { in isSafeToLoadUnconditionally()
257 --BBI; in isSafeToLoadUnconditionally()
261 if (isa<CallInst>(BBI) && BBI->mayWriteToMemory() && in isSafeToLoadUnconditionally()
262 !isa<DbgInfoIntrinsic>(BBI)) in isSafeToLoadUnconditionally()
267 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in isSafeToLoadUnconditionally()
270 } else if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) { in isSafeToLoadUnconditionally()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp820 BasicBlock::iterator BBI(LI); in visitLoadInst() local
824 FindAvailableLoadedValue(&LI, LI.getParent(), BBI, in visitLoadInst()
1198 BasicBlock::iterator BBI(SI); in visitStoreInst() local
1199 for (unsigned ScanInsts = 6; BBI != SI.getParent()->begin() && ScanInsts; in visitStoreInst()
1201 --BBI; in visitStoreInst()
1204 if (isa<DbgInfoIntrinsic>(BBI) || in visitStoreInst()
1205 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
1210 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) { in visitStoreInst()
1215 ++BBI; in visitStoreInst()
1225 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp990 BasicBlock::iterator BBI(LI); in visitLoadInst() local
993 &LI, LI.getParent(), BBI, DefMaxInstsToScan, AA, &IsLoadCSE)) { in visitLoadInst()
1430 BasicBlock::iterator BBI(SI); in visitStoreInst() local
1431 for (unsigned ScanInsts = 6; BBI != SI.getParent()->begin() && ScanInsts; in visitStoreInst()
1433 --BBI; in visitStoreInst()
1436 if (isa<DbgInfoIntrinsic>(BBI) || in visitStoreInst()
1437 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
1442 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) { in visitStoreInst()
1460 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst()
1472 if (BBI->mayWriteToMemory() || BBI->mayReadFromMemory() || BBI->mayThrow()) in visitStoreInst()
[all …]
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp955 BasicBlock::iterator BBI(LI); in visitLoadInst() local
958 &LI, LI.getParent(), BBI, DefMaxInstsToScan, AA, &IsLoadCSE)) { in visitLoadInst()
1382 BasicBlock::iterator BBI(SI); in visitStoreInst() local
1383 for (unsigned ScanInsts = 6; BBI != SI.getParent()->begin() && ScanInsts; in visitStoreInst()
1385 --BBI; in visitStoreInst()
1388 if (isa<DbgInfoIntrinsic>(BBI) || in visitStoreInst()
1389 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
1394 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) { in visitStoreInst()
1412 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst()
1424 if (BBI->mayWriteToMemory() || BBI->mayReadFromMemory() || BBI->mayThrow()) in visitStoreInst()
[all …]

12345678