isl_hash_dim: make result independent of endianness
commit39d7b91232de7df496918407fab545a797ebe79b
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 7 Dec 2012 16:51:13 +0000 (7 17:51 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 7 Dec 2012 18:59:31 +0000 (7 19:59 +0100)
treed362915aa502ec6a4c834f8b345daad9e6245088
parent8e48cf6c8c4b069a90f33f50a446bfe317e7618e
isl_hash_dim: make result independent of endianness

The result computed by isl_hash_dim may affect the order of maps
in a union map, which may in turn affect the result of AST generation.
In particular, we would generate slightly different output depending
on endianness, causing the tests to fail on big endian machines since
the generated output is compared to output generated on a little endian
machine.

Instead of hashing in the dimensions of the space as integers,
we now only hash in the least significant byte.
This has some effect on the results of AST generation, but the output
should now be the same on little endian and big endian.

Reported-by: Richard Biener <rguenther@suse.de>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
22 files changed:
isl_space.c
test_inputs/codegen/atomic.c
test_inputs/codegen/cloog/byu98-1-2-3.c
test_inputs/codegen/cloog/cholesky2.c
test_inputs/codegen/cloog/christian.c
test_inputs/codegen/cloog/classen.c
test_inputs/codegen/cloog/dealII.c
test_inputs/codegen/cloog/dot2.c
test_inputs/codegen/cloog/gauss.c
test_inputs/codegen/cloog/reservoir-lim-lam1.c
test_inputs/codegen/cloog/vivien.c
test_inputs/codegen/cloog/vivien2.c
test_inputs/codegen/cloog/yosr2.c
test_inputs/codegen/omega/iter9-0.c
test_inputs/codegen/omega/m12-1.c
test_inputs/codegen/omega/ts1d-mp-i_ts-m_b-0.c
test_inputs/codegen/omega/wak1-0.c
test_inputs/codegen/omega/wak1-1.c
test_inputs/codegen/omega/x-0.c
test_inputs/codegen/omega/x-1.c
test_inputs/codegen/pldi2012/figure8_b.c
test_inputs/codegen/separate.c