Home
last modified time | relevance | path

Searched refs:UserI (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DDemandedBits.cpp108 switch (UserI->getOpcode()) { in determineLiveOperandBits()
182 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
190 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
258 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
271 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
379 AOut = AliveBits[UserI]; in performAnalysis()
394 for (Use &OI : UserI->operands()) { in performAnalysis()
464 APInt AOut = getDemandedBits(UserI); in getDemandedBits()
489 if (isAlwaysLive(UserI)) in isUseDead()
498 if (UserI->getType()->isIntOrIntVectorTy()) { in isUseDead()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopInstSimplify.cpp104 auto *UserI = cast<Instruction>(U.getUser()); in simplifyLoopInst() local
108 if (!DT.isReachableFromEntry(UserI->getParent())) in simplifyLoopInst()
114 if (auto *UserPI = dyn_cast<PHINode>(UserI)) in simplifyLoopInst()
128 assert((L.contains(UserI) || isa<PHINode>(UserI)) && in simplifyLoopInst()
130 if (!IsFirstIteration && L.contains(UserI)) in simplifyLoopInst()
131 ToSimplify->insert(UserI); in simplifyLoopInst()
H A DSimpleLoopUnswitch.cpp185 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in replaceLoopInvariantUses() local
188 if (UserI && L.contains(UserI)) in replaceLoopInvariantUses()
2425 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in unswitchNontrivialInvariants() local
2426 if (!UserI) in unswitchNontrivialInvariants()
2431 if (DT.dominates(LoopPH, UserI->getParent())) in unswitchNontrivialInvariants()
2434 DT.dominates(ClonedPH, UserI->getParent())) in unswitchNontrivialInvariants()
H A DLoopInterchange.cpp1334 Instruction *UserI = cast<Instruction>(U.getUser()); in transform() local
1335 if (!InnerLoop->contains(UserI->getParent()) || in transform()
1336 UserI->getParent() == NewLatch || in transform()
1337 llvm::is_contained(InductionPHIs, UserI)) in transform()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp1030 if (UserI->hasOneUse()) { in isFoldableLoad()
1032 if (isa<TruncInst>(UserI)) in isFoldableLoad()
1034 else if (isa<SExtInst>(UserI)) in isFoldableLoad()
1036 else if (isa<ZExtInst>(UserI)) in isFoldableLoad()
1040 FoldedValue = UserI; in isFoldableLoad()
1041 UserI = cast<Instruction>(*UserI->user_begin()); in isFoldableLoad()
1044 if ((UserI->getOpcode() == Instruction::Sub || in isFoldableLoad()
1047 UserI->getOperand(1) != FoldedValue) in isFoldableLoad()
1053 switch (UserI->getOpcode()) { in isFoldableLoad()
1089 if (UserI->getOpcode() == Instruction::ICmp) in isFoldableLoad()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DWinEHPrepare.cpp280 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local
284 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers()
292 calculateCXXStateNumbers(FuncInfo, UserI, CatchLow); in calculateCXXStateNumbers()
328 const auto *UserI = cast<Instruction>(U); in calculateCXXStateNumbers() local
329 if (UserI->isEHPad()) in calculateCXXStateNumbers()
398 const auto *UserI = cast<Instruction>(U); in calculateSEHStateNumbers() local
402 calculateSEHStateNumbers(FuncInfo, UserI, ParentState); in calculateSEHStateNumbers()
431 const auto *UserI = cast<Instruction>(U); in calculateSEHStateNumbers() local
432 if (UserI->isEHPad()) in calculateSEHStateNumbers()
918 Instruction *UserI = cast<Instruction>(U.getUser()); in cloneCommonBlocks() local
[all …]
H A DCodeGenPrepare.cpp2914 Instruction *UserI = cast<Instruction>(U.getUser()); in UsesReplacer() local
2915 OriginalUses.push_back(InstructionAndIdx(UserI, U.getOperandNo())); in UsesReplacer()
4899 Instruction *UserI = cast<Instruction>(U.getUser()); in FindAllMemoryUses() local
4900 if (LoadInst *LI = dyn_cast<LoadInst>(UserI)) { in FindAllMemoryUses()
4905 if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) { in FindAllMemoryUses()
4912 if (AtomicRMWInst *RMW = dyn_cast<AtomicRMWInst>(UserI)) { in FindAllMemoryUses()
4919 if (AtomicCmpXchgInst *CmpX = dyn_cast<AtomicCmpXchgInst>(UserI)) { in FindAllMemoryUses()
4926 if (CallInst *CI = dyn_cast<CallInst>(UserI)) { in FindAllMemoryUses()
4945 if (FindAllMemoryUses(UserI, MemoryUses, ConsideredInsts, TLI, TRI, OptSize, in FindAllMemoryUses()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCanonicalizeFreezeInLoops.cpp106 auto *UserI = cast<Instruction>(U.getUser()); in InsertFreezeAndForgetFromSCEV() local
108 assert(L->contains(UserI->getParent()) && in InsertFreezeAndForgetFromSCEV()
110 if (isGuaranteedNotToBeUndefOrPoison(ValueToFr, nullptr, UserI, &DT)) in InsertFreezeAndForgetFromSCEV()
120 SE.forgetValue(UserI); in InsertFreezeAndForgetFromSCEV()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp1132 Instruction *UserI = cast<Instruction>(U); in SliceUpIllegalIntegerPHI() local
1135 if (PHINode *UserPN = dyn_cast<PHINode>(UserI)) { in SliceUpIllegalIntegerPHI()
1142 if (isa<TruncInst>(UserI)) { in SliceUpIllegalIntegerPHI()
1148 if (UserI->getOpcode() != Instruction::LShr || in SliceUpIllegalIntegerPHI()
1149 !UserI->hasOneUse() || !isa<TruncInst>(UserI->user_back()) || in SliceUpIllegalIntegerPHI()
1150 !isa<ConstantInt>(UserI->getOperand(1))) in SliceUpIllegalIntegerPHI()
1183 for (unsigned UserI = 0, UserE = PHIUsers.size(); UserI != UserE; ++UserI) { in SliceUpIllegalIntegerPHI() local
1184 unsigned PHIId = PHIUsers[UserI].PHIId; in SliceUpIllegalIntegerPHI()
1186 unsigned Offset = PHIUsers[UserI].Shift; in SliceUpIllegalIntegerPHI()
1187 Type *Ty = PHIUsers[UserI].Inst->getType(); in SliceUpIllegalIntegerPHI()
[all …]
H A DInstructionCombining.cpp4010 auto *UserI = cast<Instruction>(AllocaUsers.pop_back_val()); in SoleWriteToDeadLocal() local
4011 if (isa<BitCastInst>(UserI) || isa<GetElementPtrInst>(UserI) || in SoleWriteToDeadLocal()
4012 isa<AddrSpaceCastInst>(UserI)) { in SoleWriteToDeadLocal()
4013 pushUsers(*UserI); in SoleWriteToDeadLocal()
4016 if (UserI == CB) in SoleWriteToDeadLocal()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp2098 if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI) || in updateImpl()
2099 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl()
2103 if (isa<StoreInst>(UserI) || isa<LoadInst>(UserI) || in updateImpl()
3225 if (UserI == getCtxI() && UserI->getNumOperands() == 1) in isKnownNoAliasDueToNoAliasPreservation()
4812 if (!UserI || isa<GetElementPtrInst>(UserI) || isa<CastInst>(UserI) || in updateImpl()
4813 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl()
4817 if (isa<LoadInst>(UserI) || isa<CmpInst>(UserI) || in updateImpl()
6283 if (isa<GetElementPtrInst>(UserI) || isa<BitCastInst>(UserI) || in updateImpl()
6284 isa<PHINode>(UserI) || isa<SelectInst>(UserI)) { in updateImpl()
7360 if (UserI->isDroppable()) in updateImpl()
[all …]
H A DAttributor.cpp1182 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in isAssumedDead() local
1183 if (!UserI) in isAssumedDead()
1187 if (auto *CB = dyn_cast<CallBase>(UserI)) { in isAssumedDead()
1197 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(UserI)) { in isAssumedDead()
1201 } else if (PHINode *PHI = dyn_cast<PHINode>(UserI)) { in isAssumedDead()
1205 } else if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) { in isAssumedDead()
1220 return isAssumedDead(IRPosition::inst(*UserI), QueryingAA, FnLivenessAA, in isAssumedDead()
2050 Instruction *UserI = cast<Instruction>(U->getUser()); in cleanupIR() local
2052 ToBeChangedToUnreachableInsts.insert(UserI); in cleanupIR()
2054 TerminatorsToFold.push_back(UserI); in cleanupIR()
H A DOpenMPOpt.cpp414 if (Instruction *UserI = dyn_cast<Instruction>(U.getUser())) { in collectUses() local
415 if (ModuleSlice.count(UserI->getFunction())) { in collectUses()
416 RFI.getOrCreateUseVector(UserI->getFunction()).push_back(&U); in collectUses()
/llvm-project-15.0.7/polly/lib/Support/
H A DScopHelper.cpp547 auto *UserI = dyn_cast<Instruction>(User); in isHoistableLoad() local
548 if (!UserI || !R.contains(UserI)) in isHoistableLoad()
550 if (!UserI->mayWriteToMemory()) in isHoistableLoad()
553 auto &BB = *UserI->getParent(); in isHoistableLoad()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DDemandedBits.h83 void determineLiveOperandBits(const Instruction *UserI,
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp494 Instruction *UserI = dyn_cast<Instruction>(U.getUser()); in replaceWithTileLoad() local
495 IRBuilder<> Builder(UserI); in replaceWithTileLoad()
501 UserI->replaceUsesOfWith(V, TileLoad); in replaceWithTileLoad()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp852 void freeze(IRBuilder<> &Builder, Instruction &UserI) { in freeze() argument
855 assert(is_contained(ToFreeze->users(), &UserI) && in freeze()
858 Builder.SetInsertPoint(cast<Instruction>(&UserI)); in freeze()
861 for (Use &U : make_early_inc_range((UserI.operands()))) in freeze()
/llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp1149 if (auto *UserI = dyn_cast<Instruction>(U.getUser())) in createParallel() local
1150 if (ParallelRegionBlockSet.count(UserI->getParent())) in createParallel()