Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp112 switch (UseInst->getOpcode()) { in foldIVUser()
146 if (UseInst->isExact() && in foldIVUser()
151 if (!SE->isSCEVable(UseInst->getType())) in foldIVUser()
155 if (SE->getSCEV(UseInst) != FoldedExpr) in foldIVUser()
161 UseInst->setOperand(OperIdx, IVSrc); in foldIVUser()
165 UseInst->dropPoisonGeneratingFlags(); in foldIVUser()
711 if (isa<PHINode>(UseInst)) in eliminateIdentitySCEV()
722 UseInst->replaceAllUsesWith(IVOperand); in eliminateIdentitySCEV()
725 DeadInsts.emplace_back(UseInst); in eliminateIdentitySCEV()
907 DeadInsts.emplace_back(UseInst); in simplifyUsers()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp106 Instruction *UseInst,
535 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local
536 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes()
539 if (LoadInst *LI = dyn_cast<LoadInst>(UseInst)) { in collectUsesWithPtrTypes()
546 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) { in collectUsesWithPtrTypes()
553 } else if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UseInst)) { in collectUsesWithPtrTypes()
563 if (ICmpInst *ICmp = dyn_cast<ICmpInst>(UseInst)) { in collectUsesWithPtrTypes()
571 if (UseInst->getOpcode() == Instruction::AddrSpaceCast) { in collectUsesWithPtrTypes()
573 if (PointerMayBeCaptured(UseInst, true, true)) in collectUsesWithPtrTypes()
592 if (SelectInst *SI = dyn_cast<SelectInst>(UseInst)) { in collectUsesWithPtrTypes()
[all …]
H A DSIPeepholeSDWA.cpp453 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(PotentialMO->getReg())) { in potentialToConvert()
454 if (&UseInst != ParentMI) in potentialToConvert()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DMachineSink.cpp261 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
262 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
263 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
264 if (!(UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
275 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
276 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
277 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
278 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
281 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
538 MachineBasicBlock *UseBlock = UseInst.getParent(); in isProfitableToSinkTo()
[all …]
H A DMIRCanonicalizerPass.cpp243 MachineInstr *UseInst = UO.getParent(); in rescheduleCanonically() local
246 const unsigned UseLoc = getInstrIdx(*UseInst); in rescheduleCanonically()
249 if (UseInst->getParent() != Def->getParent()) in rescheduleCanonically()
256 UseToBringDefCloserTo = UseInst; in rescheduleCanonically()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSink.cpp45 Instruction *UseInst = cast<Instruction>(U.getUser()); in AllUsesDominatedByBlock() local
46 BasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
47 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in AllUsesDominatedByBlock()
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegStackify.cpp404 const MachineInstr *UseInst = Use.getParent(); in OneUseDominatesOtherUses() local
405 VNInfo *UseVNI = LI.getVNInfoBefore(LIS.getInstructionIndex(*UseInst)); in OneUseDominatesOtherUses()
410 if (UseInst == OneUseInst) { in OneUseDominatesOtherUses()
417 while (!MDT.dominates(OneUseInst, UseInst)) { in OneUseDominatesOtherUses()
423 if (UseInst->getDesc().getNumDefs() == 0) in OneUseDominatesOtherUses()
425 const MachineOperand &MO = UseInst->getOperand(0); in OneUseDominatesOtherUses()
440 UseInst = NewUseInst; in OneUseDominatesOtherUses()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DMemorySSA.cpp257 const Instruction *UseInst, in instructionClobbersQuery() argument
261 const auto *UseCall = dyn_cast<CallBase>(UseInst); in instructionClobbersQuery()
295 if (auto *UseLoad = dyn_cast<LoadInst>(UseInst)) in instructionClobbersQuery()
1349 Instruction *UseInst = MU->getMemoryInst(); in optimizeUsesInBlock() local
1350 MemoryAccess *Result = Walker->getClobberingMemoryAccess(UseInst); in optimizeUsesInBlock()
H A DScalarEvolution.cpp7683 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument
7692 for (Value *Op : UseInst->operands()) { in getConstantEvolvingPHIOperands()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp281 for (MachineInstr &UseInst : MRI.use_nodbg_instructions(DefReg)) { in sinkLocalValueMaterialization()
282 auto I = OrderMap.Orders.find(&UseInst); in sinkLocalValueMaterialization()
288 FirstUser = &UseInst; in sinkLocalValueMaterialization()