diff options
| -rw-r--r-- | llvm/lib/Transforms/Coroutines/CoroFrame.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp index 6334256bf03..0df5c12252b 100644 --- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp +++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp @@ -739,6 +739,8 @@ static void moveSpillUsesAfterCoroBegin(Function &F, SpillInfo const &Spills, for (User *U : CurrentValue->users()) { Instruction *I = cast<Instruction>(U); if (!DT.dominates(CoroBegin, I)) { + DEBUG(dbgs() << "will move: " << *I << "\n"); + // TODO: Make this more robust. Currently if we run into a situation // where simple instruction move won't work we panic and // report_fatal_error. @@ -748,7 +750,6 @@ static void moveSpillUsesAfterCoroBegin(Function &F, SpillInfo const &Spills, " dominated by CoroBegin"); } - DEBUG(dbgs() << "will move: " << *I << "\n"); NeedsMoving.push_back(I); } } |

