Home
last modified time | relevance | path

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

12

/external/llvm/lib/CodeGen/
DIfConversion.cpp140 BBInfo &BBI; member
146 : BBI(b), Kind(k), NeedSubsumption(s), NumDups(d), NumDups2(d2) {} in IfcvtToken()
175 bool ReverseBranchCondition(BBInfo &BBI);
183 void ScanInstructions(BBInfo &BBI);
186 bool FeasibilityAnalysis(BBInfo &BBI, SmallVectorImpl<MachineOperand> &Cond,
190 void RemoveExtraEdges(BBInfo &BBI);
191 bool IfConvertSimple(BBInfo &BBI, IfcvtKind Kind);
192 bool IfConvertTriangle(BBInfo &BBI, IfcvtKind Kind);
193 bool IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind,
195 void PredicateBlock(BBInfo &BBI,
[all …]
DStrongPHIElimination.cpp241 for (MachineBasicBlock::iterator BBI = I->begin(), BBE = I->end(); in runOnMachineFunction() local
242 BBI != BBE && BBI->isPHI(); ++BBI) { in runOnMachineFunction()
243 unsigned DestReg = BBI->getOperand(0).getReg(); in runOnMachineFunction()
245 PHISrcDefs[I].push_back(BBI); in runOnMachineFunction()
247 for (unsigned i = 1; i < BBI->getNumOperands(); i += 2) { in runOnMachineFunction()
248 MachineOperand &SrcMO = BBI->getOperand(i); in runOnMachineFunction()
274 for (MachineBasicBlock::iterator BBI = I->begin(), BBE = I->end(); in runOnMachineFunction() local
275 BBI != BBE && BBI->isPHI(); ++BBI) { in runOnMachineFunction()
276 InsertCopiesForPHI(BBI, I); in runOnMachineFunction()
285 for (MachineBasicBlock::iterator BBI = I->begin(), BBE = I->end(); in runOnMachineFunction() local
[all …]
DPHIElimination.cpp401 for (MachineBasicBlock::const_iterator BBI = I->begin(), BBE = I->end(); in analyzePHINodes() local
402 BBI != BBE && BBI->isPHI(); ++BBI) in analyzePHINodes()
403 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) in analyzePHINodes()
404 ++VRegPHIUseCount[BBVRegPair(BBI->getOperand(i+1).getMBB()->getNumber(), in analyzePHINodes()
405 BBI->getOperand(i).getReg())]; in analyzePHINodes()
416 for (MachineBasicBlock::iterator BBI = MBB.begin(), BBE = MBB.end(); in SplitPHIEdges() local
417 BBI != BBE && BBI->isPHI(); ++BBI) { in SplitPHIEdges()
418 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) { in SplitPHIEdges()
419 unsigned Reg = BBI->getOperand(i).getReg(); in SplitPHIEdges()
420 MachineBasicBlock *PreMBB = BBI->getOperand(i+1).getMBB(); in SplitPHIEdges()
DAnalysis.cpp235 for (BasicBlock::const_iterator BBI = prior(prior(ExitBB->end())); ; in isInTailCallPosition() local
236 --BBI) { in isInTailCallPosition()
237 if (&*BBI == I) in isInTailCallPosition()
240 if (isa<DbgInfoIntrinsic>(BBI)) in isInTailCallPosition()
242 if (BBI->mayHaveSideEffects() || BBI->mayReadFromMemory() || in isInTailCallPosition()
243 !isSafeToSpeculativelyExecute(BBI)) in isInTailCallPosition()
DLiveVariables.cpp732 for (MachineBasicBlock::const_iterator BBI = I->begin(), BBE = I->end(); in analyzePHINodes() local
733 BBI != BBE && BBI->isPHI(); ++BBI) in analyzePHINodes()
734 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) in analyzePHINodes()
735 PHIVarInfo[BBI->getOperand(i + 1).getMBB()->getNumber()] in analyzePHINodes()
736 .push_back(BBI->getOperand(i).getReg()); in analyzePHINodes()
811 for (MachineBasicBlock::iterator BBI = SuccBB->begin(), in addNewBlock() local
812 BBE = SuccBB->end(); BBI != BBE && BBI->isPHI(); ++BBI) in addNewBlock()
813 for (unsigned i = 1, e = BBI->getNumOperands(); i != e; i += 2) in addNewBlock()
814 if (BBI->getOperand(i+1).getMBB() == BB) in addNewBlock()
815 getVarInfo(BBI->getOperand(i).getReg()).AliveBlocks.set(NumNew); in addNewBlock()
DGCStrategy.cpp378 for (MachineFunction::iterator BBI = MF.begin(), in FindSafePoints() local
379 BBE = MF.end(); BBI != BBE; ++BBI) in FindSafePoints()
380 for (MachineBasicBlock::iterator MI = BBI->begin(), in FindSafePoints()
381 ME = BBI->end(); MI != ME; ++MI) in FindSafePoints()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp242 BasicBlock::iterator BBI = &LI; in visitLoadInst() local
243 if (Value *AvailableVal = FindAvailableLoadedValue(Op, LI.getParent(), BBI,6)) in visitLoadInst()
477 BasicBlock::iterator BBI = &SI; in visitStoreInst() local
478 for (unsigned ScanInsts = 6; BBI != SI.getParent()->begin() && ScanInsts; in visitStoreInst()
480 --BBI; in visitStoreInst()
483 if (isa<DbgInfoIntrinsic>(BBI) || in visitStoreInst()
484 (isa<BitCastInst>(BBI) && BBI->getType()->isPointerTy())) { in visitStoreInst()
489 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) { in visitStoreInst()
494 ++BBI; in visitStoreInst()
504 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst()
[all …]
DInstCombineMulDivRem.cpp325 BasicBlock::iterator BBI = &I, BBFront = I.getParent()->begin(); in SimplifyDivRemOfSelect() local
327 while (BBI != BBFront) { in SimplifyDivRemOfSelect()
328 --BBI; in SimplifyDivRemOfSelect()
331 if (isa<CallInst>(BBI) && !isa<IntrinsicInst>(BBI)) in SimplifyDivRemOfSelect()
335 for (Instruction::op_iterator I = BBI->op_begin(), E = BBI->op_end(); in SimplifyDivRemOfSelect()
339 Worklist.Add(BBI); in SimplifyDivRemOfSelect()
341 *I = NonNullOperand == 1 ? ConstantInt::getTrue(BBI->getContext()) : in SimplifyDivRemOfSelect()
342 ConstantInt::getFalse(BBI->getContext()); in SimplifyDivRemOfSelect()
343 Worklist.Add(BBI); in SimplifyDivRemOfSelect()
348 if (&*BBI == SI) in SimplifyDivRemOfSelect()
[all …]
/external/llvm/lib/Transforms/Scalar/
DSimplifyCFGPass.cpp82 BasicBlock::iterator BBI = I, BBE = BB->end(); in ChangeToUnreachable() local
83 while (BBI != BBE) { in ChangeToUnreachable()
84 if (!BBI->use_empty()) in ChangeToUnreachable()
85 BBI->replaceAllUsesWith(UndefValue::get(BBI->getType())); in ChangeToUnreachable()
86 BB->getInstList().erase(BBI++); in ChangeToUnreachable()
124 for (BasicBlock::iterator BBI = BB->begin(), E = BB->end(); BBI != E;++BBI){ in MarkAliveBlocks() local
125 if (CallInst *CI = dyn_cast<CallInst>(BBI)) { in MarkAliveBlocks()
130 ++BBI; in MarkAliveBlocks()
131 if (!isa<UnreachableInst>(BBI)) { in MarkAliveBlocks()
133 ChangeToUnreachable(BBI, false); in MarkAliveBlocks()
[all …]
DDeadStoreElimination.cpp477 for (BasicBlock::iterator BBI = BB.begin(), BBE = BB.end(); BBI != BBE; ) { in runOnBasicBlock() local
478 Instruction *Inst = BBI++; in runOnBasicBlock()
508 WeakVH NextInst(BBI); in runOnBasicBlock()
513 BBI = BB.begin(); in runOnBasicBlock()
514 else if (BBI != BB.begin()) // Revisit this instruction if possible. in runOnBasicBlock()
515 --BBI; in runOnBasicBlock()
563 BBI = Inst; in runOnBasicBlock()
564 if (BBI != BB.begin()) in runOnBasicBlock()
565 --BBI; in runOnBasicBlock()
720 for (BasicBlock::iterator BBI = BB.end(); BBI != BB.begin(); ){ in handleEndBlock() local
[all …]
DTailRecursionElimination.cpp309 for (Function::iterator BBI = F->begin(), E = F->end(); BBI != E; ++BBI) { in getCommonReturnValue() local
310 ReturnInst *RI = dyn_cast<ReturnInst>(BBI->getTerminator()); in getCommonReturnValue()
371 BasicBlock::iterator BBI = TI; in FindTRECandidate() local
373 CI = dyn_cast<CallInst>(BBI); in FindTRECandidate()
377 if (BBI == BB->begin()) in FindTRECandidate()
379 --BBI; in FindTRECandidate()
432 BasicBlock::iterator BBI = CI; in EliminateRecursiveTailCall() local
433 for (++BBI; &*BBI != Ret; ++BBI) { in EliminateRecursiveTailCall()
434 if (CanMoveAboveCall(BBI, CI)) continue; in EliminateRecursiveTailCall()
441 CanTransformAccumulatorRecursion(BBI, CI))) { in EliminateRecursiveTailCall()
[all …]
DCodeGenPrepare.cpp214 BasicBlock::iterator BBI = BI; in EliminateMostlyEmptyBlocks() local
215 if (BBI != BB->begin()) { in EliminateMostlyEmptyBlocks()
216 --BBI; in EliminateMostlyEmptyBlocks()
217 while (isa<DbgInfoIntrinsic>(BBI)) { in EliminateMostlyEmptyBlocks()
218 if (BBI == BB->begin()) in EliminateMostlyEmptyBlocks()
220 --BBI; in EliminateMostlyEmptyBlocks()
222 if (!isa<DbgInfoIntrinsic>(BBI) && !isa<PHINode>(BBI)) in EliminateMostlyEmptyBlocks()
248 BasicBlock::const_iterator BBI = BB->begin(); in CanMergeBlocks() local
249 while (const PHINode *PN = dyn_cast<PHINode>(BBI++)) { in CanMergeBlocks()
290 BBI = DestBB->begin(); in CanMergeBlocks()
[all …]
DReassociate.cpp104 void ReassociateInst(BasicBlock::iterator &BBI);
971 void Reassociate::ReassociateInst(BasicBlock::iterator &BBI) { in ReassociateInst() argument
972 Instruction *BI = BBI++; in ReassociateInst()
1001 BBI = BI; in ReassociateInst()
1002 ++BBI; in ReassociateInst()
1102 for (BasicBlock::iterator BBI = FI->begin(); BBI != FI->end(); ) in runOnFunction() local
1103 ReassociateInst(BBI); in runOnFunction()
1109 BasicBlock::iterator BBI = cast<Instruction>(V); in runOnFunction() local
1110 ReassociateInst(BBI); in runOnFunction()
/external/llvm/unittests/VMCore/
DDominatorTreeTest.cpp23 BasicBlock::iterator BBI = BB0->begin(); in runOnFunction() local
24 Instruction *Y1 = BBI++; in runOnFunction()
25 Instruction *Y2 = BBI++; in runOnFunction()
26 Instruction *Y3 = BBI++; in runOnFunction()
29 BBI = BB1->begin(); in runOnFunction()
30 Instruction *Y4 = BBI++; in runOnFunction()
33 BBI = BB2->begin(); in runOnFunction()
34 Instruction *Y5 = BBI++; in runOnFunction()
37 BBI = BB3->begin(); in runOnFunction()
38 Instruction *Y6 = BBI++; in runOnFunction()
[all …]
/external/llvm/lib/Analysis/
DLoads.cpp131 BasicBlock::iterator BBI = ScanFrom, E = ScanFrom->getParent()->begin(); in isSafeToLoadUnconditionally() local
133 while (BBI != E) { in isSafeToLoadUnconditionally()
134 --BBI; in isSafeToLoadUnconditionally()
138 if (isa<CallInst>(BBI) && BBI->mayWriteToMemory() && in isSafeToLoadUnconditionally()
139 !isa<DbgInfoIntrinsic>(BBI)) in isSafeToLoadUnconditionally()
142 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in isSafeToLoadUnconditionally()
144 } else if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) { in isSafeToLoadUnconditionally()
DLazyValueInfo.cpp378 Instruction *BBI, BasicBlock *BB);
514 Instruction *BBI = dyn_cast<Instruction>(Val); in solveBlockValue() local
515 if (BBI == 0 || BBI->getParent() != BB) { in solveBlockValue()
519 if (PHINode *PN = dyn_cast<PHINode>(BBI)) { in solveBlockValue()
523 if (AllocaInst *AI = dyn_cast<AllocaInst>(BBI)) { in solveBlockValue()
531 if ((!isa<BinaryOperator>(BBI) && !isa<CastInst>(BBI)) || in solveBlockValue()
532 !BBI->getType()->isIntegerTy()) { in solveBlockValue()
541 BinaryOperator *BO = dyn_cast<BinaryOperator>(BBI); in solveBlockValue()
550 return ODCacheUpdater.markResult(solveBlockValueConstantRange(BBLV, BBI, BB)); in solveBlockValue()
689 Instruction *BBI, in solveBlockValueConstantRange() argument
[all …]
DProfileEstimatorPass.cpp366 for (std::set<BasicBlock*>::iterator BBI = BBToVisit.begin(), BBE = BBToVisit.end(); in runOnFunction() local
367 (BBI != BBE) && (!found); ++BBI) { in runOnFunction()
368 BasicBlock *BB = *BBI; in runOnFunction()
/external/llvm/lib/Transforms/Utils/
DLCSSA.cpp137 for (Loop::block_iterator BBI = L->block_begin(), E = L->block_end(); in runOnLoop() local
138 BBI != E; ++BBI) { in runOnLoop()
139 BasicBlock *BB = *BBI; in runOnLoop()
217 for (SmallVectorImpl<BasicBlock*>::const_iterator BBI = ExitBlocks.begin(), in ProcessInstruction() local
218 BBE = ExitBlocks.end(); BBI != BBE; ++BBI) { in ProcessInstruction()
219 BasicBlock *ExitBB = *BBI; in ProcessInstruction()
DSimplifyCFG.cpp99 for (BasicBlock::iterator BBI = (*I)->begin(); in SafeToMergeTerminators() local
100 isa<PHINode>(BBI); ++BBI) { in SafeToMergeTerminators()
101 PHINode *PN = cast<PHINode>(BBI); in SafeToMergeTerminators()
829 for (BasicBlock::iterator BBI = SI->begin(); in isSafeToHoistInvoke() local
830 (PN = dyn_cast<PHINode>(BBI)); ++BBI) { in isSafeToHoistInvoke()
925 for (BasicBlock::iterator BBI = SI->begin(); in HoistThenElseCodeToIf() local
926 (PN = dyn_cast<PHINode>(BBI)); ++BBI) { in HoistThenElseCodeToIf()
977 for (BasicBlock::iterator BBI = BB1->begin(), BBE = BB1->end(); in SpeculativelyExecuteBB() local
978 BBI != BBE; ++BBI) { in SpeculativelyExecuteBB()
979 Instruction *I = BBI; in SpeculativelyExecuteBB()
[all …]
DLoopUnroll.cpp300 for (BasicBlock::iterator BBI = (*SI)->begin(); in UnrollLoop() local
301 PHINode *phi = dyn_cast<PHINode>(BBI); ++BBI) { in UnrollLoop()
386 for (BasicBlock::iterator BBI = (*SI)->begin(); in UnrollLoop() local
387 PHINode *Phi = dyn_cast<PHINode>(BBI); ++BBI) { in UnrollLoop()
DLoopSimplify.cpp491 Function::iterator BBI = NewBB; --BBI; in PlaceSplitBlockCarefully() local
493 if (&*BBI == SplitPreds[i]) in PlaceSplitBlockCarefully()
505 Function::iterator BBI = SplitPreds[i]; in PlaceSplitBlockCarefully() local
506 if (++BBI != NewBB->getParent()->end() && in PlaceSplitBlockCarefully()
507 L->contains(BBI)) { in PlaceSplitBlockCarefully()
DLoopUnrollRuntime.cpp70 for (BasicBlock::iterator BBI = (*SBI)->begin(); in ConnectProlog() local
71 PHINode *PN = dyn_cast<PHINode>(BBI); ++BBI) { in ConnectProlog()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp373 const BasicBlockInfo &BBI = BBInfo[J]; in dumpBBs()
374 dbgs() << format("%08x BB#%u\t", BBI.Offset, J) in dumpBBs()
375 << " kb=" << unsigned(BBI.KnownBits) in dumpBBs()
376 << " ua=" << unsigned(BBI.Unalign) in dumpBBs()
377 << " pa=" << unsigned(BBI.PostAlign) in dumpBBs()
811 BasicBlockInfo &BBI = BBInfo[MBB->getNumber()]; in computeBlockSize() local
812 BBI.Size = 0; in computeBlockSize()
813 BBI.Unalign = 0; in computeBlockSize()
814 BBI.PostAlign = 0; in computeBlockSize()
818 BBI.Size += TII->GetInstSizeInBytes(I); in computeBlockSize()
[all …]
/external/llvm/lib/Transforms/IPO/
DLoopExtractor.cpp255 Function::iterator BBI = MF->begin(); in runOnModule() local
256 std::advance(BBI, std::distance(F->begin(), Function::iterator(BB))); in runOnModule()
257 TranslatedBlocksToNotExtract.insert(BBI); in runOnModule()
/external/llvm/include/llvm/Transforms/Utils/
DSSAUpdaterImpl.h377 for (typename BlkT::iterator BBI = BB->begin(), BBE = BB->end(); in FindExistingPHI() local
378 BBI != BBE; ++BBI) { in FindExistingPHI()
379 PhiT *SomePHI = Traits::InstrIsPHI(BBI); in FindExistingPHI()

12