Skip to content

Commit

Permalink
Fix typos in comments (#8485)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking authored Nov 22, 2024
1 parent a1d4d19 commit 0ff31a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ void Stage::set_dim_type(const VarOrRVar &var, ForType t) {
if (!definition.schedule().allow_race_conditions() &&
definition.schedule().atomic()) {
if (!definition.schedule().override_atomic_associativity_test()) {
// We only allow allow associative atomic operations
// We only allow associative atomic operations
const string &func_name = function.name();
vector<Expr> &args = definition.args();
vector<Expr> &values = definition.values();
Expand Down
8 changes: 4 additions & 4 deletions src/ScheduleFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Stmt build_loop_nest(
// This is not a generic loop invariant code motion step.
// In particular there are dangling references to bound
// variables that are not defined yet, so we can't rely
// the loop invariant code motion pass.
// on the loop invariant code motion pass.

// All containing lets and fors. Outermost first.
vector<Container> nest;
Expand Down Expand Up @@ -284,7 +284,7 @@ Stmt build_loop_nest(
// Add appropriate predicates on the fused loop vars to ensure we don't
// go out of bounds. Ignore the __outermost dims since it's going to be
// removed later anyway. These have to be added as outermost as possible as
// some let stmts (e.g. the rebase let stmt) might depend on this vars;
// some let stmts (e.g. the rebase let stmt) might depend on these vars;
// otherwise, this may mess up the bounds_touched computation.
int n_predicates_inner = 0;
for (int i = start_fuse; (i >= 0) && (i < (int)stage_s.dims().size() - 1); ++i) {
Expand Down Expand Up @@ -335,7 +335,7 @@ Stmt build_loop_nest(
}

// Sort the predicate guards for the fused loops so they are as far outwards
// as possible. IfInnner should not be reordered to outside of a for loop.
// as possible. IfInner should not be reordered to outside a for loop.
for (int i = (int)nest.size() - n_predicates_inner - n_predicates;
i < (int)nest.size() - n_predicates;
i++) {
Expand Down Expand Up @@ -1848,7 +1848,7 @@ class InjectFunctionRealization : public IRMutator {
auto bounds = CollectBounds::collect_bounds(producer);

// Compute the shift factors based on the alignment strategies
// starting from the the parent (root loop) to the children. The root
// starting from the parent (root loop) to the children. The root
// loop bounds should remain unchanged.
map<string, Expr> shifts;
for (auto i = funcs.size(); i-- > 0;) {
Expand Down

0 comments on commit 0ff31a1

Please sign in to comment.