Home
last modified time | relevance | path

Searched refs:isPHI (Results 1 – 25 of 72) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DOptimizePHIs.cpp99 assert(MI->isPHI() && "IsSingleValuePHICycle expects a PHI instruction"); in IsSingleValuePHICycle()
127 if (SrcMI->isPHI()) { in IsSingleValuePHICycle()
143 assert(MI->isPHI() && "IsDeadPHICycle expects a PHI instruction"); in IsDeadPHICycle()
156 if (!UseMI.isPHI() || !IsDeadPHICycle(&UseMI, PHIsInCycle)) in IsDeadPHICycle()
170 if (!MI->isPHI()) in OptimizeBB()
H A DModuloSchedule.cpp42 assert(Phi.isPHI() && "Expecting a Phi."); in getPhiRegs()
91 if (MI->isPHI()) { in expand()
138 if (CI->isPHI()) in generatePipelinedLoop()
223 if (BBI->isPHI()) in generateProlog()
297 if (BBI.isPHI()) in generateEpilog()
457 while (InstOp1 && InstOp1->isPHI() && InstOp1->getParent() == BB) { in generateExistingPhis()
478 if (InstOp1->isPHI() && InstOp1->getParent() == KernelBB) in generateExistingPhis()
482 bool LoopDefIsPhi = PhiInst && PhiInst->isPHI(); in generateExistingPhis()
651 if (InstOp2->isPHI() && InstOp2->getParent() == NewBB) in generatePhis()
745 if (!MI->isSafeToMove(nullptr, SawStore) && !MI->isPHI()) { in removeDeadInstructions()
[all …]
H A DMachinePipeliner.cpp762 assert(Phi.isPHI() && "Expecting a Phi."); in getPhiRegs()
958 if (SU != nullptr && UseMI->isPHI()) { in updatePhiDependences()
959 if (!MI->isPHI()) { in updatePhiDependences()
978 if (SU != nullptr && DefMI->isPHI()) { in updatePhiDependences()
979 if (!MI->isPHI()) { in updatePhiDependences()
1000 if (PMI->isPHI() && PI.getKind() == SDep::Order) { in updatePhiDependences()
1001 if (I.getInstr()->isPHI()) { in updatePhiDependences()
1315 if (MI.isPHI() && Reg != getLoopPhiReg(MI, OrigMBB)) in computeLiveIn()
1394 if (MI->isPHI()) { in computeLastUses()
1404 return Stages[MI] + MI->isPHI(); in computeLastUses()
[all …]
H A DMachineSSAUpdater.cpp88 if (!I->isPHI()) in LookForIdenticalPHI()
94 while (I != BB->end() && I->isPHI()) { in LookForIdenticalPHI()
232 if (UseMI->isPHI()) { in RewriteUse()
340 if (I && I->isPHI()) in InstrIsPHI()
H A DTailDuplicator.cpp117 if (!MI->isPHI()) in VerifyPHIs()
237 if (UseMI->getParent() == DefBB && !UseMI->isPHI()) in tailDuplicateAndUpdate()
330 if (!MI.isPHI()) in getRegsUsedByPHIs()
490 if (!MI.isPHI()) in updateSuccessorsPHIs()
662 else if (!MI.isPHI() && !MI.isMetaInstruction()) in shouldTailDuplicate()
680 if (!I.isPHI()) in shouldTailDuplicate()
717 if (SuccsB.count(BB) && !BB->empty() && BB->begin()->isPHI()) in bothUsedInPHI()
903 if (MI.isPHI()) { in tailDuplicate()
964 while (I != TailBB->end() && I->isPHI()) { in tailDuplicate()
H A DMachineLoopUtils.cpp82 for (auto I = NewBB->begin(); I->isPHI(); ++I) { in PeelSingleBlockLoop()
88 assert(OrigPhi.isPHI()); in PeelSingleBlockLoop()
H A DLiveRangeShrink.cpp134 if (MI.isPHI() || MI.isDebugOrPseudoInstr()) in runOnMachineFunction()
223 while (I != MBB.end() && (I->isPHI() || I->isDebugOrPseudoInstr())) in runOnMachineFunction()
H A DLiveVariables.cpp521 if (MI.isPHI()) in runOnInstr()
709 if (UseMI.isPHI()) { in recomputeForSingleDefVirtReg()
756 if (MI.isPHI()) in recomputeForSingleDefVirtReg()
799 if (!BBI.isPHI()) in analyzePHINodes()
858 for (; BBI != BBE && BBI->isPHI(); ++BBI) { in addNewBlock()
915 BBI != BBE && BBI->isPHI(); ++BBI) { in addNewBlock()
H A DPHIElimination.cpp288 if (MBB.empty() || !MBB.front().isPHI()) in EliminatePHINodes()
307 while (MBB.front().isPHI()) in EliminatePHINodes()
740 if (!BBI.isPHI()) in analyzePHINodes()
756 if (MBB.empty() || !MBB.front().isPHI() || MBB.isEHPad()) in SplitPHIEdges()
764 BBI != BBE && BBI->isPHI(); ++BBI) { in SplitPHIEdges()
H A DWindowScheduler.cpp215 if (MI.isPHI()) { in initialize()
302 if (MI->isPHI()) in generateTripleMBB()
315 if (MI->isPHI() || MI->isMetaInstruction() || in generateTripleMBB()
700 assert(Phi->isPHI() && "Expecting PHI!"); in getAntiRegister()
H A DDeadMachineInstructionElim.cpp95 if (!MI->isSafeToMove(nullptr, SawStore) && !MI->isPHI()) in isDead()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLocalizer.cpp57 if (MIUse.isPHI()) in isLocalUse()
129 if (MRI->hasOneUse(Reg) && !UseMI.isPHI()) in localizeInterBlock()
166 if (!UseMI.isPHI()) in localizeIntraBlock()
H A DRegBankSelect.cpp330 assert((MI.isPHI() || MI.isTerminator()) && "Why do we split?"); in tryAvoidingSplit()
339 assert((!MI.isPHI() || !MO.isDef()) && "Need split for phi def?"); in tryAvoidingSplit()
777 if (!MI.isPHI() && !MI.isTerminator()) { in RepairingPlacement()
784 if (MI.isPHI()) { in RepairingPlacement()
882 assert((!Before || !Instr.isPHI()) && in InstrInsertPoint()
884 assert((!Before || !Instr.getNextNode() || !Instr.getNextNode()->isPHI()) && in InstrInsertPoint()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFMIPeephole.cpp129 if (PhiDef->isPHI()) { in isPhiFrom32Def()
148 if (DefInsn->isPHI()) { in isInsnFrom32Def()
204 SllMI->isPHI() || in eliminateZExtSeq()
214 MovMI->isPHI() || in eliminateZExtSeq()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastPreTileConfig.cpp304 assert(MI->isPHI() && "Unexpected PHI when get shape."); in getShape()
352 if (TileDefMI->isPHI()) { in convertPHI()
437 if (!MI.isPHI()) in canonicalizePHIs()
464 if (InMBB != &MBB || !DefMI->isPHI()) in canonicalizePHIs()
491 if (!MI.isPHI()) in convertPHIs()
535 if (MI.isPHI()) in configBasicBlock()
635 if (!UseMI.isPHI()) in configBasicBlock()
644 if (LastShapeMI == nullptr || LastShapeMI->isPHI()) in configBasicBlock()
H A DX86PreTileConfig.cpp63 for (auto I = MBB->begin(), E = MBB->end(); I != E && I->isPHI(); in MIRef()
119 if (MI.isPHI() || MI.isDebugInstr() || MI.getNumOperands() < 3) in isAMXInstruction()
228 if (DefMI->isPHI()) { in INITIALIZE_PASS_DEPENDENCY()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCBranchCoalescing.cpp433 if (Use.isPHI() && Use.getParent() == &TargetMBB) { in canMoveToBeginning()
465 if (DefInst->isPHI() && DefInst->getParent() == MI.getParent()) { in canMoveToEnd()
544 if (Use.isPHI() && Use.getParent() == SourceRegion.BranchTargetBlock) { in canMerge()
H A DPPCReduceCRLogicals.cpp59 if (!MI.isPHI()) in updatePHIs()
92 if (!MI.isPHI()) in addIncomingValuesToPHIs()
621 CRI.TrueDefs.first->isPHI() || CRI.TrueDefs.second->isPHI()) { in splitBlockOnBinaryCROp()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIOptimizeVGPRLiveRange.cpp215 if (UseMI.getParent() == MBB && !UseMI.isPHI()) in findNonPHIUsesInBlock()
308 if (!UseMI->isPHI()) in collectCandidateRegisters()
431 if (UseMI->isPHI() && I->readsReg()) { in updateLiveRangeInThenRegion()
525 if (UseMI->isPHI()) in optimizeLiveRange()
H A DAMDGPUMachineCFGStructurizer.cpp285 assert(PHI.isPHI()); in getPHINumInputs()
290 assert(PHI.isPHI()); in getPHIPred()
300 assert(PHI.isPHI()); in getPHISourceReg()
305 assert(PHI.isPHI()); in getPHIDestReg()
751 if (II.isPHI()) { in storeLiveOuts()
822 if (II.isPHI()) { in storeLiveOuts()
924 bool IsLoopPHI = IsInside && (O.getParent()->isPHI() && in replaceRegister()
1391 if (Instr.isPHI()) { in extractKilledPHIs()
1622 if (BBI.isPHI()) { in collectPHIs()
1929 if (DefInstr->isPHI() && DefInstr->getParent() == CodeBB && IsSingleBB) { in insertChainedPHI()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ConditionalCompares.cpp216 if (!I.isPHI()) in trivialTailPHIs()
242 if (!I.isPHI()) in updateTailPHIs()
404 if (I.isPHI()) { in canSpeculateInstrs()
485 if (!CmpBB->empty() && CmpBB->front().isPHI()) { in canConvert()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonBitSimplify.cpp1007 if (UseI->isPHI()) { in isDead()
1040 if (!MI->isPHI() && !MI->isSafeToMove(nullptr, Store)) in runOnNode()
1249 if (UseI.isPHI() || UseI.isCopy()) { in computeUsedBits()
1341 if (MI->isPHI() || MI->hasUnmodeledSideEffects() || MI->isInlineAsm()) in processBlock()
1515 auto At = I->isPHI() ? B.getFirstNonPHI() : I; in processBlock()
1638 auto At = I->isPHI() ? B.getFirstNonPHI() : I; in processBlock()
2064 auto At = MI->isPHI() ? B.getFirstNonPHI() in genPackhl()
2090 auto At = MI->isPHI() ? B.getFirstNonPHI() in genExtractHalf()
2135 auto At = MI->isPHI() ? B.getFirstNonPHI() in genCombineHalf()
2192 auto At = MI->isPHI() ? B.getFirstNonPHI() in genExtractLow()
[all …]
H A DHexagonHardwareLoops.cpp431 I != E && I->isPHI(); ++I) { in findInductionRegister()
1057 if (std::next(I) != End || !I->getParent()->isPHI()) in isDead()
1384 assert(Phi->isPHI() && "Expecting a Phi."); in phiMayWrapOrUnderflow()
1438 if (Def->isPHI() && !phiMayWrapOrUnderflow(Def, EndVal, Def->getParent(), in loopCountMayWrapOrUnderFlow()
1486 if (!Def->isCopy() && !Def->isPHI()) in loopCountMayWrapOrUnderFlow()
1614 I != E && I->isPHI(); ++I) { in fixupInductionVariable()
1881 I != E && I->isPHI(); ++I) { in createPreheaderForLoop()
1929 I != E && I->isPHI(); ++I) { in createPreheaderForLoop()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCRegisterBankInfo.cpp268 if (Op != TargetOpcode::COPY && !MI.isPHI() && in hasFPConstraints()
283 if (!MI.isPHI() || Depth > MaxFPRSearchDepth) in hasFPConstraints()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachinePipeliner.h260 return Source->getInstr()->isPHI() || Dep.getSUnit()->getInstr()->isPHI(); in isBackedge()
270 if (V->getInstr()->isPHI() && Dep.getKind() == SDep::Anti) in getDistance()

123