]> git.lizzy.rs Git - rust.git/commit
Reuse the `DefsUsesVisitor` in `simulate_block()`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 28 Jun 2018 06:30:33 +0000 (16:30 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Wed, 4 Jul 2018 03:05:03 +0000 (13:05 +1000)
commitb0c78120e3ecae5f4043781f7a3f79e2277293e7
tree98aa826f22a8ff0f76ae4446262acfed2e4e0c49
parentfb97bb50d1da7b7cafdaf83797f3514279f80421
Reuse the `DefsUsesVisitor` in `simulate_block()`.

This avoids a bunch of allocations for the bitsets within it,
speeding up a number of NLL benchmarks, the best by 1%.
src/librustc_mir/util/liveness.rs