Home
last modified time | relevance | path

Searched refs:NewPH (Results 1 – 14 of 14) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp673 BasicBlock *NewPH = CloneBasicBlock(OrigPH, VMap, NameSuffix, F); in cloneLoopWithPreheader() local
675 VMap[OrigPH] = NewPH; in cloneLoopWithPreheader()
676 Blocks.push_back(NewPH); in cloneLoopWithPreheader()
680 ParentLoop->addBasicBlockToLoop(NewPH, *LI); in cloneLoopWithPreheader()
683 DT->addNewBlock(NewPH, LoopDomBB); in cloneLoopWithPreheader()
693 DT->addNewBlock(NewBB, NewPH); in cloneLoopWithPreheader()
707 NewPH); in cloneLoopWithPreheader()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DCloneFunction.cpp755 BasicBlock *NewPH = CloneBasicBlock(OrigPH, VMap, NameSuffix, F); in cloneLoopWithPreheader() local
757 VMap[OrigPH] = NewPH; in cloneLoopWithPreheader()
758 Blocks.push_back(NewPH); in cloneLoopWithPreheader()
762 ParentLoop->addBasicBlockToLoop(NewPH, *LI); in cloneLoopWithPreheader()
765 DT->addNewBlock(NewPH, LoopDomBB); in cloneLoopWithPreheader()
775 DT->addNewBlock(NewBB, NewPH); in cloneLoopWithPreheader()
789 NewPH); in cloneLoopWithPreheader()
DLoopRotationUtils.cpp434 BasicBlock *NewPH = SplitCriticalEdge( in rotateLoop() local
437 NewPH->setName(NewHeader->getName() + ".lr.ph"); in rotateLoop()
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp1852 MachineBasicBlock *NewPH = MF->CreateMachineBasicBlock(); in createPreheaderForLoop() local
1853 MF->insert(Header->getIterator(), NewPH); in createPreheaderForLoop()
1867 NewPH->insert(NewPH->end(), NewPN); in createPreheaderForLoop()
1899 PN->addOperand(MachineOperand::CreateMBB(NewPH)); in createPreheaderForLoop()
1916 MO.setMBB(NewPH); in createPreheaderForLoop()
1937 TII->InsertBranch(*PB, NewPH, nullptr, EmptyCond, DL); in createPreheaderForLoop()
1938 PB->ReplaceUsesOfBlockWith(Header, NewPH); in createPreheaderForLoop()
1952 TII->InsertBranch(*NewPH, Header, nullptr, EmptyCond, DL); in createPreheaderForLoop()
1953 NewPH->addSuccessor(Header); in createPreheaderForLoop()
1957 ParentLoop->addBasicBlockToLoop(NewPH, MLI->getBase()); in createPreheaderForLoop()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp1892 MachineBasicBlock *NewPH = MF->CreateMachineBasicBlock(); in createPreheaderForLoop() local
1893 MF->insert(Header->getIterator(), NewPH); in createPreheaderForLoop()
1907 NewPH->insert(NewPH->end(), NewPN); in createPreheaderForLoop()
1939 PN->addOperand(MachineOperand::CreateMBB(NewPH)); in createPreheaderForLoop()
1955 MO.setMBB(NewPH); in createPreheaderForLoop()
1976 TII->insertBranch(*PB, NewPH, nullptr, EmptyCond, DL); in createPreheaderForLoop()
1977 PB->ReplaceUsesOfBlockWith(Header, NewPH); in createPreheaderForLoop()
1991 TII->insertBranch(*NewPH, Header, nullptr, EmptyCond, DL); in createPreheaderForLoop()
1992 NewPH->addSuccessor(Header); in createPreheaderForLoop()
1996 ParentLoop->addBasicBlockToLoop(NewPH, MLI->getBase()); in createPreheaderForLoop()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopRotation.cpp318 BasicBlock *NewPH = SplitCriticalEdge(OrigPreheader, NewHeader, this); in rotateLoop() local
319 NewPH->setName(NewHeader->getName() + ".lr.ph"); in rotateLoop()
DLoopUnswitch.cpp525 BasicBlock *NewPH = SplitEdge(loopPreheader, loopHeader, this); in UnswitchTrivialCondition() local
540 EmitPreheaderBranchOnCondition(Cond, Val, NewExit, NewPH, in UnswitchTrivialCondition()
DLoopStrengthReduce.cpp1558 PHINode *NewPH = PHINode::Create(DestTy, 2, "IV.S.", PH); in OptimizeShadowIV() local
1565 NewPH, CFP, "IV.S.next.", Incr); in OptimizeShadowIV()
1567 NewPH->addIncoming(NewInit, PH->getIncomingBlock(Entry)); in OptimizeShadowIV()
1568 NewPH->addIncoming(NewIncr, PH->getIncomingBlock(Latch)); in OptimizeShadowIV()
1571 ShadowUse->replaceAllUsesWith(NewPH); in OptimizeShadowIV()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSimpleLoopUnswitch.cpp408 BasicBlock *NewPH = SplitEdge(OldPH, L.getHeader(), &DT, &LI); in unswitchTrivialBranch() local
434 BI.setSuccessor(1 - LoopExitSuccIdx, NewPH); in unswitchTrivialBranch()
451 *UnswitchedBB, *NewPH); in unswitchTrivialBranch()
483 hoistLoopToNewParent(L, *NewPH, DT, LI); in unswitchTrivialBranch()
606 BasicBlock *NewPH = SplitEdge(OldPH, L.getHeader(), &DT, &LI); in unswitchTrivialSwitch() local
610 auto *NewSI = SwitchInst::Create(LoopCond, NewPH, ExitCases.size(), OldPH); in unswitchTrivialSwitch()
680 NewSI->addCase(Case.getCaseValue(), NewPH); in unswitchTrivialSwitch()
738 hoistLoopToNewParent(L, *NewPH, DT, LI); in unswitchTrivialSwitch()
DLoopUnswitch.cpp987 BasicBlock *NewPH = SplitEdge(loopPreheader, loopHeader, DT, LI); in UnswitchTrivialCondition() local
1004 EmitPreheaderBranchOnCondition(Cond, Val, NewExit, NewPH, OldBranch, TI); in UnswitchTrivialCondition()
DLoopStrengthReduce.cpp2133 PHINode *NewPH = PHINode::Create(DestTy, 2, "IV.S.", PH); in OptimizeShadowIV() local
2140 NewPH, CFP, "IV.S.next.", Incr); in OptimizeShadowIV()
2142 NewPH->addIncoming(NewInit, PH->getIncomingBlock(Entry)); in OptimizeShadowIV()
2143 NewPH->addIncoming(NewIncr, PH->getIncomingBlock(Latch)); in OptimizeShadowIV()
2146 ShadowUse->replaceAllUsesWith(NewPH); in OptimizeShadowIV()
/external/llvm/lib/Transforms/Scalar/
DLoopRotation.cpp391 BasicBlock *NewPH = SplitCriticalEdge( in rotateLoop() local
394 NewPH->setName(NewHeader->getName() + ".lr.ph"); in rotateLoop()
DLoopUnswitch.cpp829 BasicBlock *NewPH = SplitEdge(loopPreheader, loopHeader, DT, LI); in UnswitchTrivialCondition() local
844 EmitPreheaderBranchOnCondition(Cond, Val, NewExit, NewPH, in UnswitchTrivialCondition()
DLoopStrengthReduce.cpp1874 PHINode *NewPH = PHINode::Create(DestTy, 2, "IV.S.", PH); in OptimizeShadowIV() local
1881 NewPH, CFP, "IV.S.next.", Incr); in OptimizeShadowIV()
1883 NewPH->addIncoming(NewInit, PH->getIncomingBlock(Entry)); in OptimizeShadowIV()
1884 NewPH->addIncoming(NewIncr, PH->getIncomingBlock(Latch)); in OptimizeShadowIV()
1887 ShadowUse->replaceAllUsesWith(NewPH); in OptimizeShadowIV()