[PATCH] D104051: [coro] Fix rematerializable instruction sinking to coro.suspend blocks

Nate Chandler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 23 11:03:03 PDT 2021


nate_chandler added inline comments.


================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:1932
+        CurrentBlock = IsInCoroSuspendBlock
+                           ? U->getParent()->getSingleSuccessor()
+                           : U->getParent();
----------------
This should this be `getSinglePredecessor()`, right?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104051/new/

https://reviews.llvm.org/D104051



More information about the llvm-commits mailing list