]> granicus.if.org Git - llvm/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)
commit065194781ff040afb8f1dbf2346735751c36dd7a
tree5409a6582ceab37c3cdd07a7bb5c9d0d268ae113
parent478d69d99ba4766fe8fe8f2976c99e855dfe59ed
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/llvm/trunk@368796 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Coroutines/CoroSplit.cpp