Skip to content
Snippets Groups Projects
Commit 312560ba authored by Russel Arbore's avatar Russel Arbore
Browse files

cleanup

parent c15146ac
No related branches found
No related tags found
1 merge request!207Loop bound lte
This commit is part of merge request !207. Comments created here will be created in the context of that merge request.
...@@ -95,8 +95,6 @@ pub fn forkify_loop( ...@@ -95,8 +95,6 @@ pub fn forkify_loop(
) -> bool { ) -> bool {
let function = editor.func(); let function = editor.func();
println!("forkifying {:?}", l.header);
let Some(loop_condition) = get_loop_exit_conditions(function, l, control_subgraph) else { let Some(loop_condition) = get_loop_exit_conditions(function, l, control_subgraph) else {
return false; return false;
}; };
...@@ -114,7 +112,6 @@ pub fn forkify_loop( ...@@ -114,7 +112,6 @@ pub fn forkify_loop(
let ivs = compute_induction_vars(editor.func(), l, &loop_variance); let ivs = compute_induction_vars(editor.func(), l, &loop_variance);
let ivs = compute_iv_ranges(editor, l, ivs, &loop_condition); let ivs = compute_iv_ranges(editor, l, ivs, &loop_condition);
let Some(canonical_iv) = has_canonical_iv(editor, l, &ivs) else { let Some(canonical_iv) = has_canonical_iv(editor, l, &ivs) else {
println!("no canonical iv");
return false; return false;
}; };
...@@ -133,7 +130,6 @@ pub fn forkify_loop( ...@@ -133,7 +130,6 @@ pub fn forkify_loop(
}; };
let Some(bound_dc_id) = bound else { let Some(bound_dc_id) = bound else {
println!("no bound iv");
return false; return false;
}; };
...@@ -171,8 +167,6 @@ pub fn forkify_loop( ...@@ -171,8 +167,6 @@ pub fn forkify_loop(
return false; return false;
} }
println!("this one");
// Get all phis used outside of the loop, they need to be reductionable. // Get all phis used outside of the loop, they need to be reductionable.
// For now just assume all phis will be phis used outside of the loop, except for the canonical iv. // For now just assume all phis will be phis used outside of the loop, except for the canonical iv.
// FIXME: We need a different definiton of `loop_nodes` to check for phis used outside hte loop than the one // FIXME: We need a different definiton of `loop_nodes` to check for phis used outside hte loop than the one
...@@ -202,9 +196,6 @@ pub fn forkify_loop( ...@@ -202,9 +196,6 @@ pub fn forkify_loop(
let loop_body_last = editor.get_uses(loop_if).next().unwrap(); let loop_body_last = editor.get_uses(loop_if).next().unwrap();
println!("phis {:?}", reductionable_phis);
if reductionable_phis if reductionable_phis
.iter() .iter()
.any(|phi| !matches!(phi, LoopPHI::Reductionable { .. })) .any(|phi| !matches!(phi, LoopPHI::Reductionable { .. }))
...@@ -412,7 +403,6 @@ pub fn forkify_loop( ...@@ -412,7 +403,6 @@ pub fn forkify_loop(
Ok(edit) Ok(edit)
}); });
println!("result: {:?}", result);
return result; return result;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment