File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
llvm/lib/Transforms/Coroutines Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -1217,23 +1217,6 @@ static void postSplitCleanup(Function &F) {
1217
1217
#endif
1218
1218
}
1219
1219
1220
- // Assuming we arrived at the block NewBlock from Prev instruction, store
1221
- // PHI's incoming values in the ResolvedValues map.
1222
- static void
1223
- scanPHIsAndUpdateValueMap (Instruction *Prev, BasicBlock *NewBlock,
1224
- DenseMap<Value *, Value *> &ResolvedValues) {
1225
- auto *PrevBB = Prev->getParent ();
1226
- for (PHINode &PN : NewBlock->phis ()) {
1227
- auto V = PN.getIncomingValueForBlock (PrevBB);
1228
- // See if we already resolved it.
1229
- auto VI = ResolvedValues.find (V);
1230
- if (VI != ResolvedValues.end ())
1231
- V = VI->second ;
1232
- // Remember the value.
1233
- ResolvedValues[&PN] = V;
1234
- }
1235
- }
1236
-
1237
1220
// Coroutine has no suspend points. Remove heap allocation for the coroutine
1238
1221
// frame if possible.
1239
1222
static void handleNoSuspendCoroutine (coro::Shape &Shape) {
You can’t perform that action at this time.
0 commit comments