Skip to content

Commit

Permalink
chore: fix emit_loop method.
Browse files Browse the repository at this point in the history
  • Loading branch information
KuangjuX committed Sep 20, 2024
1 parent 8e46ae1 commit 992fe05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thriller-core/src/dataflow/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ impl ThrillerBlock {

// Generate loop.
for ivar in self.ivars.iter() {
let (upper, lower) = ivar.get_domain();
let (lower, upper) = ivar.get_domain();

code += match (upper, lower) {
code += match (lower, upper) {
(IterationBound::Fixed(lower), IterationBound::Fixed(upper)) => {
format!(
"{indent}for(int {ivar} = {lower}; {ivar} < {upper}; ++{ivar}){{\n",
Expand Down

0 comments on commit 992fe05

Please sign in to comment.