Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp1872 MachineBasicBlock *NewPH = MF->CreateMachineBasicBlock(); in createPreheaderForLoop() local
1873 MF->insert(Header->getIterator(), NewPH); in createPreheaderForLoop()
1887 NewPH->insert(NewPH->end(), NewPN); in createPreheaderForLoop()
1919 PN->addOperand(MachineOperand::CreateMBB(NewPH)); in createPreheaderForLoop()
1935 MO.setMBB(NewPH); in createPreheaderForLoop()
1956 PB->ReplaceUsesOfBlockWith(Header, NewPH); in createPreheaderForLoop()
1971 NewPH->addSuccessor(Header); in createPreheaderForLoop()
1975 ParentLoop->addBasicBlockToLoop(NewPH, MLI->getBase()); in createPreheaderForLoop()
1981 MDT->addNewBlock(NewPH, DHN->getBlock()); in createPreheaderForLoop()
1982 MDT->changeImmediateDominator(Header, NewPH); in createPreheaderForLoop()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp925 BasicBlock *NewPH = CloneBasicBlock(OrigPH, VMap, NameSuffix, F); in cloneLoopWithPreheader() local
927 VMap[OrigPH] = NewPH; in cloneLoopWithPreheader()
928 Blocks.push_back(NewPH); in cloneLoopWithPreheader()
932 ParentLoop->addBasicBlockToLoop(NewPH, *LI); in cloneLoopWithPreheader()
935 DT->addNewBlock(NewPH, LoopDomBB); in cloneLoopWithPreheader()
965 DT->addNewBlock(NewBB, NewPH); in cloneLoopWithPreheader()
984 NewPH); in cloneLoopWithPreheader()
H A DLoopRotationUtils.cpp610 BasicBlock *NewPH = SplitCriticalEdge( in rotateLoop() local
613 NewPH->setName(NewHeader->getName() + ".lr.ph"); in rotateLoop()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSimpleLoopUnswitch.cpp538 BasicBlock *NewPH = SplitEdge(OldPH, L.getHeader(), &DT, &LI, MSSAU); in unswitchTrivialBranch() local
578 BI.setSuccessor(1 - LoopExitSuccIdx, NewPH); in unswitchTrivialBranch()
591 *OldPH, Invariants, ExitDirection, *UnswitchedBB, *NewPH, in unswitchTrivialBranch()
643 hoistLoopToNewParent(L, *NewPH, DT, LI, MSSAU, SE); in unswitchTrivialBranch()
795 BasicBlock *NewPH = SplitEdge(OldPH, L.getHeader(), &DT, &LI, MSSAU); in unswitchTrivialSwitch() local
799 auto *NewSI = SwitchInst::Create(LoopCond, NewPH, ExitCases.size(), OldPH); in unswitchTrivialSwitch()
873 NewSIW.addCase(Case.getCaseValue(), NewPH, in unswitchTrivialSwitch()
952 hoistLoopToNewParent(L, *NewPH, DT, LI, MSSAU, SE); in unswitchTrivialSwitch()
H A DLoopStrengthReduce.cpp2204 PHINode *NewPH = PHINode::Create(DestTy, 2, "IV.S.", PH); in OptimizeShadowIV() local
2211 NewPH, CFP, "IV.S.next.", Incr); in OptimizeShadowIV()
2213 NewPH->addIncoming(NewInit, PH->getIncomingBlock(Entry)); in OptimizeShadowIV()
2214 NewPH->addIncoming(NewIncr, PH->getIncomingBlock(Latch)); in OptimizeShadowIV()
2217 ShadowUse->replaceAllUsesWith(NewPH); in OptimizeShadowIV()