about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-25 05:31:26 +0000
committerbors <bors@rust-lang.org>2021-08-25 05:31:26 +0000
commit1a9ac38defd67ddb2b830005f8d760861c85a7a3 (patch)
treebc7d87f5ba7d24c6c3ef03f26b00113bcdd77787 /compiler/rustc_codegen_llvm/src
parente5484cec0e3f60b2a0010505cd355639f75a2973 (diff)
parent9f6f8620e188d5026f1b23d7714b4e41e2d92e30 (diff)
downloadrust-1a9ac38defd67ddb2b830005f8d760861c85a7a3.tar.gz
rust-1a9ac38defd67ddb2b830005f8d760861c85a7a3.zip
Auto merge of #84333 - tmiasko:liveness-yield, r=tmandry
Improve liveness analysis for generators

Liveness analysis for generators assumes that execution always continues
normally after a yield point, not accounting for the fact that generator
could be dropped before completion.

If generators captures any variables by reference, those variables could
be used within a generator, or when the generator completes, but also
after each yield point in the case the generator is dropped.

Account for the case when generator is dropped after yielding, but
before running to the completion. This effectively considers all
variables captured by reference to be used after a yield point.

Fixes #84292.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions