[PATCH] D107573: [coro] Correct CurrentBlock tracking bug recently introduced

Arnold Schwaighofer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 5 08:03:56 PDT 2021


aschwaighofer created this revision.
aschwaighofer added a reviewer: nate_chandler.
Herald added subscribers: lxfind, hiraditya.
aschwaighofer requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

We use the CurrentBlock to determine whether we have already processed a
block. Don't reuse this variable for setting where we should insert the
rematerialization. The rematerialization block is different to the
current block when we rematerialize for coro suspend block users.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107573

Files:
  llvm/lib/Transforms/Coroutines/CoroFrame.cpp
  llvm/test/Transforms/Coroutines/coro-async-remat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107573.364481.patch
Type: text/x-patch
Size: 6269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210805/ff1af145/attachment.bin>


More information about the llvm-commits mailing list