Lines Matching refs:UI

1355       const Instruction *UI = cast<Instruction>(U);  in isFoldableInLoop()  local
1356 if (CurLoop->contains(UI) && in isFoldableInLoop()
1357 (BB != UI->getParent() || in isFoldableInLoop()
1358 (!isa<StoreInst>(UI) && !isa<LoadInst>(UI)))) in isFoldableInLoop()
1380 const Instruction *UI = cast<Instruction>(U); in isNotUsedOrFoldableInLoop() local
1381 if (const PHINode *PN = dyn_cast<PHINode>(UI)) { in isNotUsedOrFoldableInLoop()
1395 while (isa<PHINode>(UI) && UI->hasOneUser() && in isNotUsedOrFoldableInLoop()
1396 UI->getNumOperands() == 1) { in isNotUsedOrFoldableInLoop()
1397 if (!CurLoop->contains(UI)) in isNotUsedOrFoldableInLoop()
1399 UI = cast<Instruction>(UI->user_back()); in isNotUsedOrFoldableInLoop()
1404 if (CurLoop->contains(UI)) { in isNotUsedOrFoldableInLoop()
1626 for (Value::user_iterator UI = I.user_begin(), UE = I.user_end(); UI != UE;) { in sink() local
1627 auto *User = cast<Instruction>(*UI); in sink()
1628 Use &U = UI.getUse(); in sink()
1629 ++UI; in sink()
1666 UI = I.user_begin(); in sink()
1699 for (auto *UI : Users) { in sink() local
1700 auto *User = cast<Instruction>(UI); in sink()
2059 Instruction *UI = dyn_cast<Instruction>(U.getUser()); in promoteLoopAccessesToScalars() local
2060 if (!UI || !CurLoop->contains(UI)) in promoteLoopAccessesToScalars()
2065 if (LoadInst *Load = dyn_cast<LoadInst>(UI)) { in promoteLoopAccessesToScalars()
2086 } else if (const StoreInst *Store = dyn_cast<StoreInst>(UI)) { in promoteLoopAccessesToScalars()
2104 SafetyInfo->isGuaranteedToExecute(*UI, DT, CurLoop); in promoteLoopAccessesToScalars()
2136 AccessTy = getLoadStoreType(UI); in promoteLoopAccessesToScalars()
2137 else if (AccessTy != getLoadStoreType(UI)) in promoteLoopAccessesToScalars()
2143 AATags = UI->getAAMetadata(); in promoteLoopAccessesToScalars()
2145 AATags = AATags.merge(UI->getAAMetadata()); in promoteLoopAccessesToScalars()
2148 LoopUses.push_back(UI); in promoteLoopAccessesToScalars()