diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-08-04 20:30:07 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-08-04 20:30:07 +0000 |
commit | 5964d136e58c7139991ab6e264051763f57cbe83 (patch) | |
tree | c631448cff68e14139a55a0bd22f51d9800e8791 /test/Verifier | |
parent | 0d2bdafffdf37848f35bb3b6d3c84c7c519f8f96 (diff) |
[coroutines] Part 4[ab]: Coroutine Devirtualization: Lower coro.resume and coro.destroy.
This is the forth patch in the coroutine series. CoroEaly pass now lowers coro.resume
and coro.destroy intrinsics by replacing them with an indirect call to an address
returned by coro.subfn.addr intrinsic. This is done so that CGPassManager recognizes
devirtualization when CoroElide replaces a call to coro.subfn.addr with an appropriate
function address.
Patch by Gor Nishanov!
Differential Revision: https://reviews.llvm.org/D22998
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r-- | test/Verifier/invoke.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Verifier/invoke.ll b/test/Verifier/invoke.ll index b0d2ed170bfa..12c1a259520f 100644 --- a/test/Verifier/invoke.ll +++ b/test/Verifier/invoke.ll @@ -46,7 +46,7 @@ contb: define i8 @f2() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) { entry: -; CHECK: Cannot invoke an intrinsic other than donothing, patchpoint or statepoint +; CHECK: Cannot invoke an intrinsic other than donothing, patchpoint, statepoint, coro_resume or coro_destroy invoke void @llvm.trap() to label %cont unwind label %lpad |