Home
last modified time | relevance | path

Searched refs:PrevBB (Results 1 – 25 of 29) sorted by relevance

12

/external/llvm/lib/CodeGen/
DBranchFolding.cpp1275 MachineBasicBlock &PrevBB = *std::prev(MachineFunction::iterator(MBB)); in OptimizeBlock() local
1280 TII->analyzeBranch(PrevBB, PriorTBB, PriorFBB, PriorCond, true); in OptimizeBlock()
1283 MadeChange |= PrevBB.CorrectExtraCFGEdges(PriorTBB, PriorFBB, in OptimizeBlock()
1290 DebugLoc dl = getBranchDebugLoc(PrevBB); in OptimizeBlock()
1291 TII->RemoveBranch(PrevBB); in OptimizeBlock()
1294 TII->InsertBranch(PrevBB, PriorTBB, nullptr, PriorCond, dl); in OptimizeBlock()
1308 PrevBB.succ_size() == 1 && in OptimizeBlock()
1310 DEBUG(dbgs() << "\nMerging into block: " << PrevBB in OptimizeBlock()
1313 if (PrevBB.begin() != PrevBB.end()) { in OptimizeBlock()
1314 MachineBasicBlock::iterator PrevBBIter = PrevBB.end(); in OptimizeBlock()
[all …]
DTailDuplicator.cpp811 MachineBasicBlock *PrevBB = &*std::prev(TailBB->getIterator()); in tailDuplicate() local
816 if (PrevBB->succ_size() == 1 && in tailDuplicate()
817 !TII->analyzeBranch(*PrevBB, PriorTBB, PriorFBB, PriorCond, true) && in tailDuplicate()
820 DEBUG(dbgs() << "\nMerging into block: " << *PrevBB in tailDuplicate()
831 processPHI(MI, TailBB, PrevBB, LocalVRMap, CopyInfos, UsedByPhi, true); in tailDuplicate()
840 duplicateInstruction(MI, TailBB, PrevBB, MF, LocalVRMap, UsedByPhi); in tailDuplicate()
843 appendCopies(PrevBB, CopyInfos, Copies); in tailDuplicate()
846 PrevBB->splice(PrevBB->end(), TailBB, TailBB->begin(), TailBB->end()); in tailDuplicate()
848 PrevBB->removeSuccessor(PrevBB->succ_begin()); in tailDuplicate()
849 assert(PrevBB->succ_empty()); in tailDuplicate()
[all …]
DMachineBlockPlacement.cpp1496 MachineBasicBlock *PrevBB = &*std::prev(MachineFunction::iterator(ChainBB)); in buildCFGChains() local
1525 if (!TII->analyzeBranch(*PrevBB, TBB, FBB, Cond)) in buildCFGChains()
1526 PrevBB->updateTerminator(); in buildCFGChains()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DBranchFolding.cpp1409 MachineBasicBlock &PrevBB = *std::prev(MachineFunction::iterator(MBB)); in OptimizeBlock() local
1414 TII->analyzeBranch(PrevBB, PriorTBB, PriorFBB, PriorCond, true); in OptimizeBlock()
1417 MadeChange |= PrevBB.CorrectExtraCFGEdges(PriorTBB, PriorFBB, in OptimizeBlock()
1424 DebugLoc dl = getBranchDebugLoc(PrevBB); in OptimizeBlock()
1425 TII->removeBranch(PrevBB); in OptimizeBlock()
1428 TII->insertBranch(PrevBB, PriorTBB, nullptr, PriorCond, dl); in OptimizeBlock()
1442 PrevBB.succ_size() == 1 && in OptimizeBlock()
1444 LLVM_DEBUG(dbgs() << "\nMerging into block: " << PrevBB in OptimizeBlock()
1447 if (PrevBB.begin() != PrevBB.end()) { in OptimizeBlock()
1448 MachineBasicBlock::iterator PrevBBIter = PrevBB.end(); in OptimizeBlock()
[all …]
DTailDuplicator.cpp882 MachineBasicBlock *PrevBB = ForcedLayoutPred; in tailDuplicate() local
883 if (!PrevBB) in tailDuplicate()
884 PrevBB = &*std::prev(TailBB->getIterator()); in tailDuplicate()
889 if (PrevBB->succ_size() == 1 && in tailDuplicate()
891 *PrevBB->succ_begin() == TailBB && in tailDuplicate()
892 !TII->analyzeBranch(*PrevBB, PriorTBB, PriorFBB, PriorCond) && in tailDuplicate()
897 LLVM_DEBUG(dbgs() << "\nMerging into block: " << *PrevBB in tailDuplicate()
902 TII->removeBranch(*PrevBB); in tailDuplicate()
912 processPHI(MI, TailBB, PrevBB, LocalVRMap, CopyInfos, UsedByPhi, true); in tailDuplicate()
921 duplicateInstruction(MI, TailBB, PrevBB, LocalVRMap, UsedByPhi); in tailDuplicate()
[all …]
DMachineBlockPlacement.cpp2708 MachineBasicBlock *PrevBB = &*std::prev(MachineFunction::iterator(ChainBB)); in buildCFGChains() local
2717 if (!BlocksWithUnanalyzableExits.count(PrevBB)) { in buildCFGChains()
2721 assert((!TII->analyzeBranch(*PrevBB, TBB, FBB, Cond) || in buildCFGChains()
2722 !PrevBB->canFallThrough()) && in buildCFGChains()
2750 if (!TII->analyzeBranch(*PrevBB, TBB, FBB, Cond)) in buildCFGChains()
2751 PrevBB->updateTerminator(); in buildCFGChains()
/external/llvm-project/llvm/lib/CodeGen/
DBranchFolding.cpp1372 MachineBasicBlock &PrevBB = *std::prev(MachineFunction::iterator(MBB)); in OptimizeBlock() local
1377 TII->analyzeBranch(PrevBB, PriorTBB, PriorFBB, PriorCond, true); in OptimizeBlock()
1383 DebugLoc dl = getBranchDebugLoc(PrevBB); in OptimizeBlock()
1384 TII->removeBranch(PrevBB); in OptimizeBlock()
1387 TII->insertBranch(PrevBB, PriorTBB, nullptr, PriorCond, dl); in OptimizeBlock()
1401 PrevBB.succ_size() == 1 && in OptimizeBlock()
1403 LLVM_DEBUG(dbgs() << "\nMerging into block: " << PrevBB in OptimizeBlock()
1406 if (PrevBB.begin() != PrevBB.end()) { in OptimizeBlock()
1407 MachineBasicBlock::iterator PrevBBIter = PrevBB.end(); in OptimizeBlock()
1412 while (PrevBBIter != PrevBB.begin() && MBBIter != MBB->end() in OptimizeBlock()
[all …]
DTailDuplicator.cpp909 MachineBasicBlock *PrevBB = ForcedLayoutPred; in tailDuplicate() local
910 if (!PrevBB) in tailDuplicate()
911 PrevBB = &*std::prev(TailBB->getIterator()); in tailDuplicate()
916 if (PrevBB->succ_size() == 1 && in tailDuplicate()
918 *PrevBB->succ_begin() == TailBB && in tailDuplicate()
919 !TII->analyzeBranch(*PrevBB, PriorTBB, PriorFBB, PriorCond) && in tailDuplicate()
924 LLVM_DEBUG(dbgs() << "\nMerging into block: " << *PrevBB in tailDuplicate()
929 TII->removeBranch(*PrevBB); in tailDuplicate()
939 processPHI(MI, TailBB, PrevBB, LocalVRMap, CopyInfos, UsedByPhi, true); in tailDuplicate()
948 duplicateInstruction(MI, TailBB, PrevBB, LocalVRMap, UsedByPhi); in tailDuplicate()
[all …]
DMachineBlockPlacement.cpp2754 MachineBasicBlock *PrevBB = &*std::prev(MachineFunction::iterator(ChainBB)); in buildCFGChains() local
2763 if (!BlocksWithUnanalyzableExits.count(PrevBB)) { in buildCFGChains()
2767 assert((!TII->analyzeBranch(*PrevBB, TBB, FBB, Cond) || in buildCFGChains()
2768 !PrevBB->canFallThrough()) && in buildCFGChains()
2796 if (!TII->analyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains()
2797 PrevBB->updateTerminator(OriginalLayoutSuccessors[PrevBB->getNumber()]); in buildCFGChains()
2805 MachineBasicBlock *PrevBB = &F->back(); in buildCFGChains() local
2806 PrevBB->updateTerminator(OriginalLayoutSuccessors[PrevBB->getNumber()]); in buildCFGChains()
/external/llvm/lib/Target/AArch64/
DAArch64A53Fix835769.cpp138 MachineBasicBlock *PrevBB = &*std::prev(MBBI); in getBBFallenThrough() local
140 if (S == PrevBB && !TII->analyzeBranch(*PrevBB, TBB, FBB, Cond) && !TBB && in getBBFallenThrough()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DVPlan.cpp118 BasicBlock *PrevBB = CFG.PrevBB; in createEmptyBasicBlock() local
119 BasicBlock *NewBB = BasicBlock::Create(PrevBB->getContext(), getName(), in createEmptyBasicBlock()
120 PrevBB->getParent(), CFG.LastBB); in createEmptyBasicBlock()
167 BasicBlock *NewBB = State->CFG.PrevBB; // Reuse it if possible. in execute()
190 State->CFG.PrevBB = NewBB; in execute()
395 IRBuilder<> Builder(State->CFG.PrevBB->getTerminator()); in execute()
405 BasicBlock *VectorPreHeaderBB = State->CFG.PrevBB; in execute()
425 State->CFG.PrevBB = VectorHeaderBB; in execute()
450 BasicBlock *LastBB = State->CFG.PrevBB; in execute()
DVPlan.h298 BasicBlock *PrevBB = nullptr; member
DLoopVectorize.cpp6564 State.CFG.PrevBB = ILV.createVectorizedLoopSkeleton(); in executePlan()
7463 auto *CurrentTerminator = State.CFG.PrevBB->getTerminator(); in execute()
7466 auto *CondBr = BranchInst::Create(State.CFG.PrevBB, nullptr, ConditionBit); in execute()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64A53Fix835769.cpp142 MachineBasicBlock *PrevBB = &*std::prev(MBBI); in getBBFallenThrough() local
144 if (S == PrevBB && !TII->analyzeBranch(*PrevBB, TBB, FBB, Cond) && !TBB && in getBBFallenThrough()
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64A53Fix835769.cpp142 MachineBasicBlock *PrevBB = &*std::prev(MBBI); in getBBFallenThrough() local
144 if (S == PrevBB && !TII->analyzeBranch(*PrevBB, TBB, FBB, Cond) && !TBB && in getBBFallenThrough()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DVPlan.cpp263 BasicBlock *PrevBB = CFG.PrevBB; in createEmptyBasicBlock() local
264 BasicBlock *NewBB = BasicBlock::Create(PrevBB->getContext(), getName(), in createEmptyBasicBlock()
265 PrevBB->getParent(), CFG.LastBB); in createEmptyBasicBlock()
312 BasicBlock *NewBB = State->CFG.PrevBB; // Reuse it if possible. in execute()
335 State->CFG.PrevBB = NewBB; in execute()
585 IRBuilder<> Builder(State->CFG.PrevBB->getTerminator()); in execute()
599 BasicBlock *VectorPreHeaderBB = State->CFG.PrevBB; in execute()
619 State->CFG.PrevBB = VectorHeaderBB; in execute()
644 BasicBlock *LastBB = State->CFG.PrevBB; in execute()
1006 IRBuilder<> Builder(State.CFG.PrevBB->getTerminator()); in execute()
DVPlan.h326 BasicBlock *PrevBB = nullptr; member
/external/llvm-project/polly/lib/CodeGen/
DLoopGeneratorsGOMP.cpp110 BasicBlock *PrevBB = Builder.GetInsertBlock(); in createSubFn() local
120 DT.addNewBlock(HeaderBB, PrevBB); in createSubFn()
DLoopGeneratorsKMP.cpp138 BasicBlock *PrevBB = Builder.GetInsertBlock(); in createSubFn() local
148 DT.addNewBlock(HeaderBB, PrevBB); in createSubFn()
/external/llvm-project/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp631 BasicBlock *PrevBB = EntryBB; in TEST_F() local
641 PN->addIncoming(ConstantInt::get(Context, APInt(64, 100)), PrevBB); in TEST_F()
658 PrevBB = CondBB; in TEST_F()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroSplit.cpp894 auto *PrevBB = Prev->getParent(); in scanPHIsAndUpdateValueMap() local
896 auto V = PN.getIncomingValueForBlock(PrevBB); in scanPHIsAndUpdateValueMap()
/external/llvm-project/llvm/lib/Transforms/Coroutines/
DCoroSplit.cpp1002 auto *PrevBB = Prev->getParent(); in scanPHIsAndUpdateValueMap() local
1004 auto V = PN.getIncomingValueForBlock(PrevBB); in scanPHIsAndUpdateValueMap()
/external/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp986 BasicBlock *PrevBB = SF.CurBB; // Remember where we came from... in SwitchToNewBasicBlock() local
997 int i = PN->getBasicBlockIndex(PrevBB); in SwitchToNewBasicBlock()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp931 BasicBlock *PrevBB = SF.CurBB; // Remember where we came from... in SwitchToNewBasicBlock() local
942 int i = PN->getBasicBlockIndex(PrevBB); in SwitchToNewBasicBlock()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp984 BasicBlock *PrevBB = SF.CurBB; // Remember where we came from... in SwitchToNewBasicBlock() local
995 int i = PN->getBasicBlockIndex(PrevBB); in SwitchToNewBasicBlock()

12