Optimize partition_slice (#341)

* Generate debug symbols in optimized builds.

This allows profiling tools to provide more accurate information,
especially details about inlined functions.

* Rewrite and optimize partition_slice

This improves the performance of the register allocation passes
which use LiveValueTracker.
This commit is contained in:
Amanieu d'Antras
2018-05-18 20:54:00 +01:00
committed by Dan Gohman
parent 4c150907bf
commit 80fdfb2376
2 changed files with 46 additions and 18 deletions

View File

@@ -32,3 +32,11 @@ term = "0.5.1"
capstone = "0.3.1"
[workspace]
# We want debug symbols on release binaries by default since it allows profiling
# tools to give more accurate information. We can always strip them out later if
# necessary.
[profile.release]
debug = true
[profile.bench]
debug = true