only do clobber string computation if tracing
This commit is contained in:
@@ -445,6 +445,7 @@ fn allocate_block_insts<'a, F: Function>(
|
|||||||
state.func.is_branch(inst),
|
state.func.is_branch(inst),
|
||||||
alloc_idx
|
alloc_idx
|
||||||
);
|
);
|
||||||
|
if trace_enabled!() {
|
||||||
let mut str = String::new();
|
let mut str = String::new();
|
||||||
for preg in clobbers {
|
for preg in clobbers {
|
||||||
if str.is_empty() {
|
if str.is_empty() {
|
||||||
@@ -454,6 +455,7 @@ fn allocate_block_insts<'a, F: Function>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
trace!("Clobbers: {}", str);
|
trace!("Clobbers: {}", str);
|
||||||
|
}
|
||||||
|
|
||||||
// keep track of which pregs where allocated so we can clear them later on
|
// keep track of which pregs where allocated so we can clear them later on
|
||||||
// TODO: wouldnt need this if we look up the inst a vreg was allocated at
|
// TODO: wouldnt need this if we look up the inst a vreg was allocated at
|
||||||
|
|||||||
Reference in New Issue
Block a user