isl_space_get_{hash,domain_hash}: only hash in parameters once
commit66b2cc39eb2ccf27db49305205c85e57d05d4cf8
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 20 Apr 2017 11:48:30 +0000 (20 13:48 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Thu, 25 May 2017 14:13:31 +0000 (25 16:13 +0200)
tree82574421a8c9e7acfb0bb36e9c3079ea3e0cd170
parent31e33444ef584374f43cf00bf1ca69420440cbec
isl_space_get_{hash,domain_hash}: only hash in parameters once

isl_hash_space and isl_hash_space_domain would call themselves
recursively on nested spaces, resulting in the (same) parameters
needlessly being hashed in twice.
Extract out the hashing in of parameters such that it is only
performed once (in the caller).  The names of the functions are
changed to reflect this change in behavior.
After removing the handling of parameters, it will also be possible
to reuse the resulting isl_hash_tuples in the function
isl_space_get_tuple_hash introduced in the next commit.

Since the parameters are only hashed in once, the hash values
may be different, which results in some changes in the AST generation output.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
13 files changed:
isl_space.c
test_inputs/codegen/cloog/4-param.c
test_inputs/codegen/cloog/byu98-1-2-3.c
test_inputs/codegen/cloog/classen.c
test_inputs/codegen/cloog/dealII.c
test_inputs/codegen/cloog/faber.c
test_inputs/codegen/cloog/gauss.c
test_inputs/codegen/cloog/gesced2.c
test_inputs/codegen/cloog/lineality-2-1-2.c
test_inputs/codegen/cloog/reservoir-lim-lam1.c
test_inputs/codegen/cloog/reservoir-liu-zhuge1.c
test_inputs/codegen/cloog/yosr.c
test_inputs/codegen/cloog/yosr2.c