about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorLucas Molas <schomatis@gmail.com>2019-02-14 21:33:31 -0300
committerLucas Molas <schomatis@gmail.com>2019-02-15 20:54:46 -0300
commit200bc02a5e41e763175b5fa9eb97f27a472c777f (patch)
tree6fa9cbcb1f88721a35688bc5e48ae80f24a200d4 /src/rustllvm/RustWrapper.cpp
parenta9410cd1af7c1194fbda1457c74b8ab25547e1e6 (diff)
downloadrust-200bc02a5e41e763175b5fa9eb97f27a472c777f.tar.gz
rust-200bc02a5e41e763175b5fa9eb97f27a472c777f.zip
nll: remove `NllLivenessMap` from `LivenessContext`
It was used in `compute_for_all_locals` to iterate only the `Local`s that need
liveness analysis (filtered through `compute`). Instead, explicitly extract that
reduced set (as `live_locals`) in `trace` and pass it to
`compute_for_all_locals`.

Change the variable type used in `compute_for_all_locals` from `LiveVar` to
`Local` and do the same for its helper functions (and the functions in
`LocalUseMap` they rely on):

* `add_defs_for`                 -> `LocalUseMap::defs`
* `compute_use_live_points_for`  -> `LocalUseMap::uses`
* `compute_drop_live_points_for` -> `LocalUseMap::drops`

Push back the use of `LiveVar` to the `LocalUseMap` (where the other
`NllLivenessMap` remains embedded) functions which internally do the
`from_local` conversion.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions