Review feedback.

This commit is contained in:
Chris Fallin
2021-08-12 14:08:10 -07:00
parent b76b7747d0
commit 2f856435f4
4 changed files with 21 additions and 18 deletions

View File

@@ -96,7 +96,7 @@ impl<'a, F: Function> Env<'a, F> {
self.compute_liveness()?;
self.merge_vreg_bundles();
self.queue_bundles();
if log::log_enabled!(log::Level::Debug) {
if log::log_enabled!(log::Level::Trace) {
self.dump_state();
}
Ok(())

View File

@@ -411,9 +411,9 @@ impl<'a, F: Function> Env<'a, F> {
from_block.index(),
alloc,
);
#[cfg(debug)]
#[cfg(debug_assertions)]
{
if log::log_enabled!(log::Level::Debug) {
if log::log_enabled!(log::Level::Trace) {
self.annotate(
self.cfginfo.block_entry[block.index()],
format!(
@@ -772,9 +772,9 @@ impl<'a, F: Function> Env<'a, F> {
input_alloc
);
if input_alloc != output_alloc {
#[cfg(debug)]
#[cfg(debug_assertions)]
{
if log::log_enabled!(log::Level::Debug) {
if log::log_enabled!(log::Level::Trace) {
self.annotate(
ProgPoint::before(inst),
format!(