isl_ast_codegen.c: generate_component: handle non-obviously fixed values
commitcb1da73e54a95833c9f73ce8074a737e4d7a2390
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 3 Jul 2013 10:58:57 +0000 (3 12:58 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 5 Jul 2013 10:54:46 +0000 (5 12:54 +0200)
tree034dd4cb089427acc71ae96a4f478b4030d288cc
parente1ac81f426b8ddc50f9df99a19186785b5385288
isl_ast_codegen.c: generate_component: handle non-obviously fixed values

When all domains have an obviously fixed value, we skip the check
for opportunties to expose strides by shifting.  However, the domains
may still have non-obviously fixed values, in which case the gcd
of the strides is zero, which breaks generate_shift_component.
Skip the shifting in this case as well.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_ast_codegen.c
test_inputs/codegen/shift2.c [new file with mode: 0644]
test_inputs/codegen/shift2.in [new file with mode: 0644]