Home
last modified time | relevance | path

Searched refs:UseInst (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp133 switch (UseInst->getOpcode()) { in foldIVUser()
173 if (!SE->isSCEVable(UseInst->getType())) in foldIVUser()
177 if (SE->getSCEV(UseInst) != FoldedExpr) in foldIVUser()
183 UseInst->setOperand(OperIdx, IVSrc); in foldIVUser()
187 UseInst->dropPoisonGeneratingFlags(); in foldIVUser()
696 for (User *U : UseInst->users()) { in replaceFloatIVWithIntegerIV()
743 if (isa<PHINode>(UseInst)) in eliminateIdentitySCEV()
754 UseInst->replaceAllUsesWith(IVOperand); in eliminateIdentitySCEV()
757 DeadInsts.emplace_back(UseInst); in eliminateIdentitySCEV()
900 DeadInsts.emplace_back(UseInst); in simplifyUsers()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp1036 if (!UseInst->mayWriteToMemory()) in isCompleteOverwrite()
1039 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isCompleteOverwrite()
1044 if (auto CC = getLocForWrite(UseInst)) in isCompleteOverwrite()
1088 if (isReadClobber(*MaybeLoc, UseInst)) { in isWriteAtEndOfFunction()
1155 if (isNoopIntrinsic(UseInst)) in isReadClobber()
1160 if (auto SI = dyn_cast<StoreInst>(UseInst)) in isReadClobber()
1163 if (!UseInst->mayReadFromMemory()) in isReadClobber()
1166 if (auto *CB = dyn_cast<CallBase>(UseInst)) in isReadClobber()
1431 return DT.dominates(KI, UseInst); in getDomMemoryDef()
1459 if (isReadClobber(MaybeDeadLoc, UseInst)) { in getDomMemoryDef()
[all …]
H A DSink.cpp131 Instruction *UseInst = cast<Instruction>(U.getUser()); in SinkInstruction() local
132 BasicBlock *UseBlock = UseInst->getParent(); in SinkInstruction()
136 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in SinkInstruction()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp95 Instruction *UseInst,
601 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local
602 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes()
605 if (LoadInst *LI = dyn_cast<LoadInst>(UseInst)) { in collectUsesWithPtrTypes()
612 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) { in collectUsesWithPtrTypes()
619 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UseInst)) { in collectUsesWithPtrTypes()
629 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes()
637 if (UseInst->getOpcode() == Instruction::AddrSpaceCast) { in collectUsesWithPtrTypes()
639 if (PointerMayBeCaptured(UseInst, true, true)) in collectUsesWithPtrTypes()
663 if (SelectInst *SI = dyn_cast<SelectInst>(UseInst)) { in collectUsesWithPtrTypes()
[all …]
H A DGCNNSAReassign.cpp220 const MachineInstr *UseInst = U.getParent(); in CheckNSA() local
221 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg) in CheckNSA()
H A DSIPeepholeSDWA.cpp424 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(PotentialMO->getReg())) { in potentialToConvert()
425 if (&UseInst != ParentMI) in potentialToConvert()
H A DSIInstrInfo.cpp8098 auto &UseInst = *Use.getParent(); in execMayBeModifiedBeforeAnyUse() local
8101 if (UseInst.getParent() != DefBB || UseInst.isPHI()) in execMayBeModifiedBeforeAnyUse()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCPreEmitPeephole.cpp257 MachineBasicBlock::iterator UseInst; in addLinkerOpt() member
302 Pair.UseInst = BBI; in addLinkerOpt()
313 assert(Pair->UseInst.isValid() && Pair->StillValid && in addLinkerOpt()
320 for (; BBI != Pair->UseInst; ++BBI) { in addLinkerOpt()
342 Pair->UseInst->addOperand(ImplUse); in addLinkerOpt()
350 Pair->UseInst->addOperand(*MF, PCRelLabel); in addLinkerOpt()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMIRCanonicalizerPass.cpp210 MachineInstr *UseInst = UO.getParent(); in rescheduleCanonically() local
213 const unsigned UseLoc = getInstrIdx(*UseInst); in rescheduleCanonically()
216 if (UseInst->getParent() != Def->getParent()) in rescheduleCanonically()
223 UseToBringDefCloserTo = UseInst; in rescheduleCanonically()
H A DMachineSink.cpp333 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
334 unsigned OpNo = UseInst->getOperandNo(&MO); in AllUsesDominatedByBlock()
335 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
336 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
345 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
346 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
347 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
348 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
351 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
761 MachineBasicBlock *UseBlock = UseInst.getParent(); in isProfitableToSinkTo()
[all …]
H A DRegAllocFast.cpp382 for (const MachineInstr &UseInst : MRI->use_nodbg_instructions(VirtReg)) { in mayLiveOut() local
383 if (UseInst.getParent() != MBB || ++C >= Limit) { in mayLiveOut()
392 if (SelfLoopDef == &UseInst || in mayLiveOut()
393 !dominates(*MBB, SelfLoopDef->getIterator(), UseInst.getIterator())) { in mayLiveOut()
/llvm-project-15.0.7/polly/lib/Transform/
H A DForwardOpTree.cpp667 Instruction *UseInst, ScopStmt *DefStmt, in forwardSpeculatable() argument
670 if (isa<PHINode>(UseInst)) in forwardSpeculatable()
685 if (mayHaveNonDefUseDependency(*UseInst)) in forwardSpeculatable()
689 Depends.reserve(UseInst->getNumOperands()); in forwardSpeculatable()
690 for (Value *OpVal : UseInst->operand_values()) { in forwardSpeculatable()
709 auto ExecAction = [this, TargetStmt, UseInst]() { in forwardSpeculatable()
713 TargetStmt->prependInstruction(UseInst); in forwardSpeculatable()
715 LLVM_DEBUG(dbgs() << " forwarded speculable instruction: " << *UseInst in forwardSpeculatable()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp444 const MachineInstr *UseInst = Use.getParent(); in oneUseDominatesOtherUses() local
445 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in oneUseDominatesOtherUses()
450 if (UseInst == OneUseInst) { in oneUseDominatesOtherUses()
457 while (!MDT.dominates(OneUseInst, UseInst)) { in oneUseDominatesOtherUses()
463 if (UseInst->getDesc().getNumDefs() == 0) in oneUseDominatesOtherUses()
465 const MachineOperand &MO = UseInst->getOperand(0); in oneUseDominatesOtherUses()
480 UseInst = NewUseInst; in oneUseDominatesOtherUses()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86FastPreTileConfig.cpp144 for (const MachineInstr &UseInst : MRI->use_nodbg_instructions(VirtReg)) { in mayLiveOut() local
145 if (UseInst.getParent() != MBB) { in mayLiveOut()
154 if (dominates(*MBB, *CfgMI, UseInst)) { in mayLiveOut()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemorySSA.cpp300 const Instruction *UseInst, AliasAnalysisType &AA) { in instructionClobbersQuery() argument
330 if (auto *CB = dyn_cast_or_null<CallBase>(UseInst)) { in instructionClobbersQuery()
337 if (auto *UseLoad = dyn_cast_or_null<LoadInst>(UseInst)) in instructionClobbersQuery()
H A DScalarEvolution.cpp9194 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument
9203 for (Value *Op : UseInst->operands()) { in getConstantEvolvingPHIOperands()
/llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2497 auto *UseInst = dyn_cast<Instruction>(U.getUser()); in removeUnusedBlocksFromParent() local
2498 if (!UseInst) in removeUnusedBlocksFromParent()
2500 if (BBsToErase.count(UseInst->getParent())) in removeUnusedBlocksFromParent()