Home
last modified time | relevance | path

Searched refs:LoopEntry (Results 1 – 9 of 9) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFixIrreducibleControlFlow.cpp105 const BlockSet &getLoopEnterers(MachineBasicBlock *LoopEntry) const { in getLoopEnterers()
106 assert(inRegion(LoopEntry)); in getLoopEnterers()
107 auto I = LoopEnterers.find(LoopEntry); in getLoopEnterers()
252 for (auto *LoopEntry : Graph.getLoopEntries()) { in processRegion() local
273 MutualLoopEntries.insert(LoopEntry); in processRegion()
275 if (OtherLoopEntry != LoopEntry && in processRegion()
276 Graph.canReach(LoopEntry, OtherLoopEntry) && in processRegion()
277 Graph.canReach(OtherLoopEntry, LoopEntry)) { in processRegion()
299 for (auto *LoopEntry : Graph.getLoopEntries()) { in processRegion() local
300 LoopBlocks InnerBlocks(LoopEntry, Graph.getLoopEnterers(LoopEntry)); in processRegion()
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFixIrreducibleControlFlow.cpp117 const BlockSet &getLoopEnterers(MachineBasicBlock *LoopEntry) const { in getLoopEnterers()
118 assert(inRegion(LoopEntry)); in getLoopEnterers()
119 auto I = LoopEnterers.find(LoopEntry); in getLoopEnterers()
261 for (auto *LoopEntry : getSortedEntries(Graph.getLoopEntries())) { in processRegion() local
288 MutualLoopEntries.insert(LoopEntry); in processRegion()
290 if (OtherLoopEntry != LoopEntry && in processRegion()
291 Graph.canReach(LoopEntry, OtherLoopEntry) && in processRegion()
292 Graph.canReach(OtherLoopEntry, LoopEntry)) { in processRegion()
314 for (auto *LoopEntry : Graph.getLoopEntries()) { in processRegion() local
315 LoopBlocks InnerBlocks(LoopEntry, Graph.getLoopEnterers(LoopEntry)); in processRegion()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp1164 static Value *matchCondition(BranchInst *BI, BasicBlock *LoopEntry, in matchCondition() argument
1183 if ((Pred == ICmpInst::ICMP_NE && TrueSucc == LoopEntry) || in matchCondition()
1184 (Pred == ICmpInst::ICMP_EQ && FalseSucc == LoopEntry)) in matchCondition()
1193 BasicBlock *LoopEntry) { in getRecurrenceVar() argument
1195 if (PhiX && PhiX->getParent() == LoopEntry && in getRecurrenceVar()
1230 BasicBlock *LoopEntry; in detectPopcountIdiom() local
1238 LoopEntry = *(CurLoop->block_begin()); in detectPopcountIdiom()
1243 dyn_cast<BranchInst>(LoopEntry->getTerminator()), LoopEntry)) in detectPopcountIdiom()
1275 PhiX = getRecurrenceVar(VarX1, DefX2, LoopEntry); in detectPopcountIdiom()
1282 for (BasicBlock::iterator Iter = LoopEntry->getFirstNonPHI()->getIterator(), in detectPopcountIdiom()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp960 static Value *matchCondition(BranchInst *BI, BasicBlock *LoopEntry) { in matchCondition() argument
973 if ((Pred == ICmpInst::ICMP_NE && BI->getSuccessor(0) == LoopEntry) || in matchCondition()
974 (Pred == ICmpInst::ICMP_EQ && BI->getSuccessor(1) == LoopEntry)) in matchCondition()
1009 BasicBlock *LoopEntry; in detectPopcountIdiom() local
1017 LoopEntry = *(CurLoop->block_begin()); in detectPopcountIdiom()
1022 dyn_cast<BranchInst>(LoopEntry->getTerminator()), LoopEntry)) in detectPopcountIdiom()
1066 for (BasicBlock::iterator Iter = LoopEntry->getFirstNonPHI()->getIterator(), in detectPopcountIdiom()
1067 IterE = LoopEntry->end(); in detectPopcountIdiom()
1078 if (!Phi || Phi->getParent() != LoopEntry) in detectPopcountIdiom()
1084 if ((cast<Instruction>(U))->getParent() != LoopEntry) { in detectPopcountIdiom()
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp1579 static Value *matchCondition(BranchInst *BI, BasicBlock *LoopEntry, in matchCondition() argument
1598 if ((Pred == ICmpInst::ICMP_NE && TrueSucc == LoopEntry) || in matchCondition()
1599 (Pred == ICmpInst::ICMP_EQ && FalseSucc == LoopEntry)) in matchCondition()
1608 BasicBlock *LoopEntry) { in getRecurrenceVar() argument
1610 if (PhiX && PhiX->getParent() == LoopEntry && in getRecurrenceVar()
1645 BasicBlock *LoopEntry; in detectPopcountIdiom() local
1653 LoopEntry = *(CurLoop->block_begin()); in detectPopcountIdiom()
1658 dyn_cast<BranchInst>(LoopEntry->getTerminator()), LoopEntry)) in detectPopcountIdiom()
1690 PhiX = getRecurrenceVar(VarX1, DefX2, LoopEntry); in detectPopcountIdiom()
1698 LoopEntry->getFirstNonPHI()->getIterator(), LoopEntry->end())) { in detectPopcountIdiom()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIInstrInfo.h957 void convertNonUniformLoopRegion(MachineBasicBlock *LoopEntry,
DSIInstrInfo.cpp6100 MachineBasicBlock *LoopEntry, MachineBasicBlock *LoopEnd) const { in convertNonUniformLoopRegion() argument
6115 for (MachineBasicBlock::pred_iterator PI = LoopEntry->pred_begin(), in convertNonUniformLoopRegion()
6116 E = LoopEntry->pred_end(); in convertNonUniformLoopRegion()
6137 .addMBB(LoopEntry); in convertNonUniformLoopRegion()
6139 LoopEntry->insert(LoopEntry->begin(), HeaderPhi); in convertNonUniformLoopRegion()
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Target/AMDGPU/
DSIInstrInfo.h1072 void convertNonUniformLoopRegion(MachineBasicBlock *LoopEntry,
DSIInstrInfo.cpp7701 MachineBasicBlock *LoopEntry, MachineBasicBlock *LoopEnd) const { in convertNonUniformLoopRegion() argument
7716 for (MachineBasicBlock *PMBB : LoopEntry->predecessors()) { in convertNonUniformLoopRegion()
7735 .addMBB(LoopEntry); in convertNonUniformLoopRegion()
7737 LoopEntry->insert(LoopEntry->begin(), HeaderPhi); in convertNonUniformLoopRegion()