| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 133 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 D | DeadStoreElimination.cpp | 1036 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 D | Sink.cpp | 131 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 D | AMDGPUPromoteAlloca.cpp | 95 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 D | GCNNSAReassign.cpp | 220 const MachineInstr *UseInst = U.getParent(); in CheckNSA() local 221 if (UseInst->isCopy() && UseInst->getOperand(0).getReg() == PhysReg) in CheckNSA()
|
| H A D | SIPeepholeSDWA.cpp | 424 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(PotentialMO->getReg())) { in potentialToConvert() 425 if (&UseInst != ParentMI) in potentialToConvert()
|
| H A D | SIInstrInfo.cpp | 8098 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 D | PPCPreEmitPeephole.cpp | 257 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 D | MIRCanonicalizerPass.cpp | 210 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 D | MachineSink.cpp | 333 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 D | RegAllocFast.cpp | 382 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 D | ForwardOpTree.cpp | 667 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 D | WebAssemblyRegStackify.cpp | 444 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 D | X86FastPreTileConfig.cpp | 144 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 D | MemorySSA.cpp | 300 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 D | ScalarEvolution.cpp | 9194 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 D | OMPIRBuilder.cpp | 2497 auto *UseInst = dyn_cast<Instruction>(U.getUser()); in removeUnusedBlocksFromParent() local 2498 if (!UseInst) in removeUnusedBlocksFromParent() 2500 if (BBsToErase.count(UseInst->getParent())) in removeUnusedBlocksFromParent()
|