Skip to content

Commit

Permalink
Fixed an optimization issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalFir committed Jan 7, 2025
1 parent e8d7fc6 commit 7e98954
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cilly/src/v2/opt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,11 @@ impl MethodDef {
self.implementation_mut().remove_duplicate_sfi(asm);
}
if let MethodImpl::MethodBody { blocks, .. } = self.implementation_mut() {
linearilze_best_span(blocks, asm);
if let Some(block) = linearize_blocks(blocks, asm){
*blocks = vec![block];
}
// Better, not yet done OPT.
// linearilze_best_span(blocks, asm);
// Linear, so supports some additional opts.
if blocks.len() == 1 {}
}
Expand Down

0 comments on commit 7e98954

Please sign in to comment.