diff options
author | Frederik Harwath <frederik@codesourcery.com> | 2022-05-17 16:02:01 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2022-05-17 16:02:01 +0200 |
commit | 0f00ebf0d6be944dabf4329bce81a9c063c7ded7 (patch) | |
tree | 0570b9af0dfa864de0c1f5945cfd4adea47fe283 | |
parent | 0cca1c22b0de3dbdd7b4fc9a314d8dcf906c07f1 (diff) | |
download | gcc-0f00ebf0d6be944dabf4329bce81a9c063c7ded7.zip gcc-0f00ebf0d6be944dabf4329bce81a9c063c7ded7.tar.gz gcc-0f00ebf0d6be944dabf4329bce81a9c063c7ded7.tar.bz2 |
graphite: Fix minor mistakes in comments
gcc/ChangeLog:
* graphite-sese-to-poly.cc (build_poly_sr_1): Fix a typo and
a reference to a variable which does not exist.
* graphite-isl-ast-to-gimple.cc (gsi_insert_earliest): Fix typo
in comment.
-rw-r--r-- | gcc/graphite-isl-ast-to-gimple.cc | 2 | ||||
-rw-r--r-- | gcc/graphite-sese-to-poly.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/graphite-isl-ast-to-gimple.cc b/gcc/graphite-isl-ast-to-gimple.cc index 45ed770..844b6d4 100644 --- a/gcc/graphite-isl-ast-to-gimple.cc +++ b/gcc/graphite-isl-ast-to-gimple.cc @@ -1014,7 +1014,7 @@ gsi_insert_earliest (gimple_seq seq) basic_block begin_bb = get_entry_bb (codegen_region); /* Inserting the gimple statements in a vector because gimple_seq behave - in strage ways when inserting the stmts from it into different basic + in strange ways when inserting the stmts from it into different basic blocks one at a time. */ auto_vec<gimple *, 3> stmts; for (gimple_stmt_iterator gsi = gsi_start (seq); !gsi_end_p (gsi); diff --git a/gcc/graphite-sese-to-poly.cc b/gcc/graphite-sese-to-poly.cc index ea67b26..51ba3af 100644 --- a/gcc/graphite-sese-to-poly.cc +++ b/gcc/graphite-sese-to-poly.cc @@ -649,14 +649,14 @@ build_poly_sr_1 (poly_bb_p pbb, gimple *stmt, tree var, enum poly_dr_type kind, isl_map *acc, isl_set *subscript_sizes) { scop_p scop = PBB_SCOP (pbb); - /* Each scalar variables has a unique alias set number starting from + /* Each scalar variable has a unique alias set number starting from the maximum alias set assigned to a dr. */ int alias_set = scop->max_alias_set + SSA_NAME_VERSION (var); subscript_sizes = isl_set_fix_si (subscript_sizes, isl_dim_set, 0, alias_set); /* Add a constrain to the ACCESSES polyhedron for the alias set of - data reference DR. */ + the reference. */ isl_constraint *c = isl_equality_alloc (isl_local_space_from_space (isl_map_get_space (acc))); c = isl_constraint_set_constant_si (c, -alias_set); |