]> granicus.if.org Git - clang/commit
Remove unreachable blocks before splitting a coroutine.
authorJohn McCall <rjmccall@apple.com>
Wed, 14 Aug 2019 03:54:13 +0000 (03:54 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 14 Aug 2019 03:54:13 +0000 (03:54 +0000)
commitf4af306f21d940055f0858e61f7f8448ac1df423
treef3672ab18dbfc62d0d49258b3547529a0c7c8d1d
parentb165125115794a302175c79b63a1c964323cf6fb
Remove unreachable blocks before splitting a coroutine.

The suspend-crossing algorithm is not correct in the presence of uses
that cannot be reached on some successor path from their defs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368796 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGenCoroutines/coro-retcon-unreachable.ll [new file with mode: 0644]