]> git.lizzy.rs Git - rust.git/commit
Avoid creating basic blocks for empty cleanup scopes
authorBjörn Steinbrink <bsteinbr@gmail.com>
Wed, 22 Jul 2015 21:15:01 +0000 (23:15 +0200)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Wed, 22 Jul 2015 21:15:01 +0000 (23:15 +0200)
commita66af8788d904a2c197803d5289de01274010891
tree7d6a4c3b1a05d10229a4806f20c7ec5c6f821e9e
parentd4d4206e5604b86fc4a9b28a8b51d99121cc3a5d
Avoid creating basic blocks for empty cleanup scopes

When compiling libsyntax this removes about 30k basic blocks that only
contain a single unconditional jump and reduces the peak memory usage by
about 10MB (from 681MB down to 671MB).
src/librustc_trans/trans/cleanup.rs