Lines Matching defs:What
1139 // Move What before Where in the MemorySSA IR.
1141 void MemorySSAUpdater::moveTo(MemoryUseOrDef *What, BasicBlock *BB,
1143 // Mark MemoryPhi users of What not to be optimized.
1144 for (auto *U : What->users())
1149 What->replaceAllUsesWith(What->getDefiningAccess());
1152 MSSA->moveTo(What, BB, Where);
1155 if (auto *MD = dyn_cast<MemoryDef>(What))
1158 insertUse(cast<MemoryUse>(What), /*RenameUses=*/true);
1165 // Move What before Where in the MemorySSA IR.
1166 void MemorySSAUpdater::moveBefore(MemoryUseOrDef *What, MemoryUseOrDef *Where) {
1167 moveTo(What, Where->getBlock(), Where->getIterator());
1170 // Move What after Where in the MemorySSA IR.
1171 void MemorySSAUpdater::moveAfter(MemoryUseOrDef *What, MemoryUseOrDef *Where) {
1172 moveTo(What, Where->getBlock(), ++Where->getIterator());
1175 void MemorySSAUpdater::moveToPlace(MemoryUseOrDef *What, BasicBlock *BB,
1178 return moveTo(What, BB, Where);
1181 return moveBefore(What, Where);
1183 return moveTo(What, BB, MemorySSA::InsertionPlace::End);