Searched refs:UseInst (Results 1 – 10 of 10) sorted by relevance
112 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 …]
106 Instruction *UseInst,535 Instruction *UseInst = cast<Instruction>(User); in collectUsesWithPtrTypes() local536 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 …]
453 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(PotentialMO->getReg())) { in potentialToConvert()454 if (&UseInst != ParentMI) in potentialToConvert()
261 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local262 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() local276 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 …]
243 MachineInstr *UseInst = UO.getParent(); in rescheduleCanonically() local246 const unsigned UseLoc = getInstrIdx(*UseInst); in rescheduleCanonically()249 if (UseInst->getParent() != Def->getParent()) in rescheduleCanonically()256 UseToBringDefCloserTo = UseInst; in rescheduleCanonically()
45 Instruction *UseInst = cast<Instruction>(U.getUser()); in AllUsesDominatedByBlock() local46 BasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()47 if (PHINode *PN = dyn_cast<PHINode>(UseInst)) { in AllUsesDominatedByBlock()
404 const MachineInstr *UseInst = Use.getParent(); in OneUseDominatesOtherUses() local405 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()
257 const Instruction *UseInst, in instructionClobbersQuery() argument261 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() local1350 MemoryAccess *Result = Walker->getClobberingMemoryAccess(UseInst); in optimizeUsesInBlock()
7683 getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L, in getConstantEvolvingPHIOperands() argument7692 for (Value *Op : UseInst->operands()) { in getConstantEvolvingPHIOperands()
281 for (MachineInstr &UseInst : MRI.use_nodbg_instructions(DefReg)) { in sinkLocalValueMaterialization()282 auto I = OrderMap.Orders.find(&UseInst); in sinkLocalValueMaterialization()288 FirstUser = &UseInst; in sinkLocalValueMaterialization()