diff options
author | Gor Nishanov <GorNishanov@gmail.com> | 2017-08-23 14:47:52 +0000 |
---|---|---|
committer | Gor Nishanov <GorNishanov@gmail.com> | 2017-08-23 14:47:52 +0000 |
commit | 2f55b958b1ad6f224a8cf65d6b640b8fbff78595 (patch) | |
tree | 6d02d695e65c4ab9079cbfbad2938a70797b35cd /llvm/lib/Option/OptTable.cpp | |
parent | 6c75b51bb57fc329fbaea61fe8f37d50fd81829f (diff) | |
download | llvm-2f55b958b1ad6f224a8cf65d6b640b8fbff78595.zip llvm-2f55b958b1ad6f224a8cf65d6b640b8fbff78595.tar.gz llvm-2f55b958b1ad6f224a8cf65d6b640b8fbff78595.tar.bz2 |
[coroutines] CoroBegin from inner coroutines should be considered for spills
Summary:
If a coroutine outer calls another coroutine inner and the inner coroutine body is inlined into the outer, coro.begin from the inner coroutine should be considered for spilling if accessed across suspends.
Prior to this change, coroutine frame building code was not considering any coro.begins for spilling.
With this change, we only ignore coro.begin for the current coroutine, but, any coro.begins that were inlined into the current coroutine are eligible for spills.
Fixes PR34267
Reviewers: GorNishanov
Subscribers: qcolombet, llvm-commits, EricWF
Differential Revision: https://reviews.llvm.org/D37062
llvm-svn: 311556
Diffstat (limited to 'llvm/lib/Option/OptTable.cpp')
0 files changed, 0 insertions, 0 deletions