Home
last modified time | relevance | path

Searched refs:PHIs (Results 1 – 15 of 15) sorted by relevance

/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DEarlyIfConversion.cpp120 SmallVector<PHIInfo, 8> PHIs; member in __anon398718eb0111::SSAIfConv
413 PHIs.clear(); in canConvertIf()
418 PHIs.push_back(&*I); in canConvertIf()
419 PHIInfo &PI = PHIs.back(); in canConvertIf()
468 for (unsigned i = 0, e = PHIs.size(); i != e; ++i) { in replacePHIInstrs()
469 PHIInfo &PI = PHIs[i]; in replacePHIInstrs()
488 for (unsigned i = 0, e = PHIs.size(); i != e; ++i) { in rewritePHIOperands()
489 PHIInfo &PI = PHIs[i]; in rewritePHIOperands()
735 for (unsigned i = 0, e = IfConv.PHIs.size(); i != e; ++i) { in shouldConvertIf()
736 SSAIfConv::PHIInfo &PI = IfConv.PHIs[i]; in shouldConvertIf()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp640 if (!AllUsesOfValueWillTrapIfNull(CI, PHIs)) return false; in AllUsesOfValueWillTrapIfNull()
642 if (!AllUsesOfValueWillTrapIfNull(GEPI, PHIs)) return false; in AllUsesOfValueWillTrapIfNull()
646 if (PHIs.insert(PN).second && !AllUsesOfValueWillTrapIfNull(PN, PHIs)) in AllUsesOfValueWillTrapIfNull()
665 SmallPtrSet<const PHINode*, 8> PHIs; in AllUsesOfLoadedValueWillTrapIfNull() local
666 if (!AllUsesOfValueWillTrapIfNull(LI, PHIs)) in AllUsesOfLoadedValueWillTrapIfNull()
980 if (!ValueIsOnlyUsedLocallyOrStoredToOneGlobal(Inst, GV, PHIs)) in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
988 if (PHIs.insert(PN).second) in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
989 if (!ValueIsOnlyUsedLocallyOrStoredToOneGlobal(PN, GV, PHIs)) in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
995 if (!ValueIsOnlyUsedLocallyOrStoredToOneGlobal(BCI, GV, PHIs)) in ValueIsOnlyUsedLocallyOrStoredToOneGlobal()
1486 SmallPtrSet<const PHINode*, 8> PHIs; in tryToOptimizeStoreOfMallocToGlobal() local
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineCFGStructurizer.cpp1416 SmallPtrSet<MachineInstr *, 2> PHIs; in extractKilledPHIs() local
1425 PHIs.insert(&Instr); in extractKilledPHIs()
1431 for (auto PI : PHIs) { in extractKilledPHIs()
1659 PHIs.push_back(&BBI); in collectPHIs()
1667 SmallVector<MachineInstr *, 2> PHIs; in rewriteRegionExitPHIs() local
1672 collectPHIs(Exit, PHIs); in rewriteRegionExitPHIs()
1674 for (auto PHII : PHIs) { in rewriteRegionExitPHIs()
1684 collectPHIs(Entry, PHIs); in rewriteRegionEntryPHIs()
1686 for (auto PHII : PHIs) { in rewriteRegionEntryPHIs()
2471 collectPHIs(Entry, PHIs); in splitLoopPHIs()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DBasicBlockUtils.cpp125 SmallVector<WeakTrackingVH, 8> PHIs; in DeleteDeadPHIs() local
127 PHIs.push_back(&PN); in DeleteDeadPHIs()
130 for (unsigned i = 0, e = PHIs.size(); i != e; ++i) in DeleteDeadPHIs()
131 if (PHINode *PN = dyn_cast_or_null<PHINode>(PHIs[i].operator Value*())) in DeleteDeadPHIs()
H A DSimplifyCFG.cpp2643 SmallVector<PHINode *, 4> PHIs; in FoldBranchToCommonDest() local
2647 !isProfitableToFoldUnconditional(BI, PBI, Cond, PHIs))) in FoldBranchToCommonDest()
2782 for (unsigned i = 0, e = PHIs.size(); i != e; ++i) { in FoldBranchToCommonDest()
2784 PHIs[i]->getIncomingValueForBlock(PBI->getParent())); in FoldBranchToCommonDest()
2813 PHIs[i]->setIncomingValue(PHIs[i]->getBasicBlockIndex(PBI->getParent()), in FoldBranchToCommonDest()
5282 SmallVector<PHINode *, 4> PHIs; in SwitchToLookupTable() local
5303 PHIs.push_back(PHI); in SwitchToLookupTable()
5309 for (PHINode *PHI : PHIs) { in SwitchToLookupTable()
5313 uint64_t NumResults = ResultLists[PHIs[0]].size(); in SwitchToLookupTable()
5401 const ResultListTy &ResultList = ResultLists[PHIs[0]]; in SwitchToLookupTable()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp366 llvm::PHINode *PHIs[N]; in visitArray() local
369 PHIs[I] = CGF.Builder.CreatePHI(CGF.CGM.Int8PtrPtrTy, 2, "addr.cur"); in visitArray()
370 PHIs[I]->addIncoming(StartAddrs[I].getPointer(), PreheaderBB); in visitArray()
380 CGF.Builder.CreateICmpEQ(PHIs[DstIdx], DstArrayEnd, "done"); in visitArray()
391 PHIs[I], StartAddrs[I].getAlignment().alignmentAtOffset(EltSize)); in visitArray()
403 PHIs[I]->addIncoming(NewAddrs[I].getPointer(), LoopBB); in visitArray()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DIVDescriptors.cpp332 SmallVector<Instruction *, 8> PHIs; in AddReductionVar() local
367 PHIs.push_back(UI); in AddReductionVar()
381 Worklist.append(PHIs.begin(), PHIs.end()); in AddReductionVar()
H A DValueTracking.cpp3556 SmallPtrSetImpl<const PHINode*> &PHIs, in GetStringLengthH() argument
3564 if (!PHIs.insert(PN).second) in GetStringLengthH()
3570 uint64_t Len = GetStringLengthH(IncValue, PHIs, CharSize); in GetStringLengthH()
3586 uint64_t Len1 = GetStringLengthH(SI->getTrueValue(), PHIs, CharSize); in GetStringLengthH()
3588 uint64_t Len2 = GetStringLengthH(SI->getFalseValue(), PHIs, CharSize); in GetStringLengthH()
3620 SmallPtrSet<const PHINode*, 32> PHIs; in GetStringLength() local
3621 uint64_t Len = GetStringLengthH(V, PHIs, CharSize); in GetStringLength()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DGVNSink.cpp594 void analyzeInitialPHIs(BasicBlock *BB, ModelledPHISet &PHIs, in analyzeInitialPHIs() argument
598 PHIs.insert(MPHI); in analyzeInitialPHIs()
H A DIndVarSimplify.cpp487 SmallVector<WeakTrackingVH, 8> PHIs; in rewriteNonIntegerIVs() local
489 PHIs.push_back(&PN); in rewriteNonIntegerIVs()
492 for (unsigned i = 0, e = PHIs.size(); i != e; ++i) in rewriteNonIntegerIVs()
493 if (PHINode *PN = dyn_cast_or_null<PHINode>(&*PHIs[i])) in rewriteNonIntegerIVs()
/freebsd-12.1/contrib/gcc/
H A Dtimevar.def93 DEFTIMEVAR (TV_TREE_REDPHI , "tree redundant PHIs")
H A DChangeLog.tree-ssa177 arguments to bypassed PHIs as needing to be rewritten.
2489 PHIs before looking at the statements in the destination
2776 Record temporary equivalences created by PHIs and temporarily
2779 if the dominated block has PHIs. Remove temporary equivalenecs
2780 created by PHIs in thread_across_edge. Update code to restore the
3222 * tree-ssa-dce.c (find_useful_stmts): Do not consider PHIs for
3630 saved block. Mark variables appearing in PHIs at the jump thread
4048 to restrict threading through PHIs.
7269 * tree-must-alias.c (find_addressable_vars): Process PHIs.
7475 separate functions, one for PHIs and one for normal statements.
[all …]
H A DChangeLog-20062971 with an empty list of PHIs.
8083 memory-tag and virtual operand PHIs except for store copy prop.
12539 * passes.c (init_optimization_passes): Merge PHIs before
H A DChangeLog-20044332 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
7410 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
10500 duplicate blocks and update PHIs at the target of the outgoing
30045 PHIs where the destination or an argument is marked with
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp563 SetVector<PHINode *> PHIs; in canRewriteGEPAsOffset() local
614 PHIs.insert(PN); in canRewriteGEPAsOffset()
619 for (auto *PN : PHIs) in canRewriteGEPAsOffset()