]> git.lizzy.rs Git - rust.git/commit
Split PlaceContext::Store into Store & AsmOutput
authorScott McMurray <scottmcm@users.noreply.github.com>
Tue, 19 Dec 2017 22:05:14 +0000 (17:05 -0500)
committerScott McMurray <scottmcm@users.noreply.github.com>
Tue, 19 Dec 2017 22:05:14 +0000 (17:05 -0500)
commitfb245e05404ad5bbe689dcdc5bd5f4750f4e3730
treec7bd066f7ed7f7e508e3ef6d6eca92d62d0718ae
parente7db42fb5b9a620c5669711546663d0ccebf9291
Split PlaceContext::Store into Store & AsmOutput

Outputs in InlineAsm can be read-write, so splitting it out is useful for things like Store-Store folding, as it cannot be done for a Store-AsmOutput.

This PR is intended to make no changes, just be the mechanical split of the enum.  Future changes can use the split, like a MIR pass I'm working on and perhaps two-phase borrows.
src/librustc/mir/visit.rs
src/librustc_mir/dataflow/impls/borrows.rs
src/librustc_mir/transform/check_unsafety.rs
src/librustc_mir/transform/promote_consts.rs
src/librustc_mir/util/liveness.rs
src/librustc_trans/mir/analyze.rs