Lines Matching full:defs

148   auto *Defs = MSSA->getWritableBlockDefs(MA->getBlock());  in getPreviousDefInBlock()  local
150 // It's possible there are no defs, or we got handed the first def to start. in getPreviousDefInBlock()
151 if (Defs) { in getPreviousDefInBlock()
156 if (Iter != Defs->rend()) in getPreviousDefInBlock()
164 // Note that if MA comes before Defs->begin(), we won't hit a def. in getPreviousDefInBlock()
175 auto *Defs = MSSA->getWritableBlockDefs(BB); in getPreviousDefFromEnd() local
177 if (Defs) { in getPreviousDefFromEnd()
178 CachedPreviousDef.insert({BB, &*Defs->rbegin()}); in getPreviousDefFromEnd()
179 return &*Defs->rbegin(); in getPreviousDefFromEnd()
244 // may-defs, there are only two cases: in insertUse()
257 auto *Defs = MSSA->getBlockDefs(MU->getBlock()); in insertUse() local
258 (void)Defs; in insertUse()
259 assert((!Defs || (++Defs->begin() == Defs->end())) && in insertUse()
260 "Block may have only a Phi or no defs"); in insertUse()
267 if (auto *Defs = MSSA->getWritableBlockDefs(StartBlock)) { in insertUse() local
268 MemoryAccess *FirstDef = &*Defs->begin(); in insertUse()
304 // Then, we update the defs below us (and any new phi nodes) in the graph to
305 // point to the correct new defs, to ensure we only have one variable, and no
335 // Defs are automatically unoptimized when the user is set to MD below, in insertDef()
431 // Now that all fixups are done, rename all uses if we are asked. The defs are in insertDef()
453 // optimized and the inserted Defs "covers" the Optimized value. in insertDef()
470 auto *Defs = MSSA->getWritableBlockDefs(NewDef->getBlock()); in fixupDefs() local
478 if (++DefIter != Defs->end()) { in fixupDefs()
497 if (auto *Defs = MSSA->getWritableBlockDefs(FixupBlock)) { in fixupDefs() local
498 auto *FirstDef = &*Defs->begin(); in fixupDefs()
718 // Update Uses and Defs. in updateForClonedLoop()
733 // All defs/phis from outside BB that are used in BB, are valid uses in P1. in updateForClonedBlockIntoPred()
734 // Since those defs/phis must have dominated BB, and also dominate P1. in updateForClonedBlockIntoPred()
735 // Defs from BB being used in BB will be replaced with the cloned defs from in updateForClonedBlockIntoPred()
847 MemorySSA::DefsList *Defs = MSSA->getWritableBlockDefs(BB); in applyInsertUpdates() local
849 if (Defs) in applyInsertUpdates()
850 return &*(--Defs->end()); in applyInsertUpdates()
1010 // still compute blocks with defs to replace for this block below. in applyInsertUpdates()
1023 // Check DefP1 against all Defs in LastDefPredPair. If all the same, in applyInsertUpdates()
1106 // Now for all defs in BlocksWithDefsToReplace, if there are uses they no in applyInsertUpdates()
1216 auto *Defs = MSSA->getWritableBlockDefs(From); in moveAllAccesses() local
1217 if (Defs && !Defs->empty()) in moveAllAccesses()
1218 if (auto *Phi = dyn_cast<MemoryPhi>(&*Defs->begin())) in moveAllAccesses()