Skip to content

Commit

Permalink
Fixed compDef comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed May 8, 2023
1 parent 3c697f5 commit 0fb2c48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mmoc/ir/compute_deps.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ struct CompDef {
return lhs.eq.id() < rhs.eq.id();
}
if (lhs.use_map.constantExp() && !rhs.use_map.constantExp()) {
return lhs.use_map.constants() < rhs.use_map.initValues();
return lhs.use_map.constants() < rhs.use_map.appliedInitValues();
}
if (!lhs.use_map.constantExp() && rhs.use_map.constantExp()) {
return lhs.use_map.initValues() < rhs.use_map.constants();
return lhs.use_map.appliedInitValues() < rhs.use_map.constants();
}
if (!lhs.use_map.constantExp() && !rhs.use_map.constantExp()) {
return lhs.use_map.initValues() < rhs.use_map.initValues();
return lhs.use_map.appliedInitValues() < rhs.use_map.appliedInitValues();
}
assert(false);
return false;
Expand Down

0 comments on commit 0fb2c48

Please sign in to comment.