isl_pw_aff_scale: don't special case multiplication with zero
commit0f70687fa67eec8d957e3e06eba1e4704a1da80f
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 1 Dec 2011 10:34:31 +0000 (1 11:34 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 1 Dec 2011 10:42:41 +0000 (1 11:42 +0100)
tree91325c2292fb5260e42fd55266e91f01925a8efd
parentc5d70b079199801b6ec47a4b9ab867695a92d9db
isl_pw_aff_scale: don't special case multiplication with zero

isl_pw_*_scale returns an empty result if a multiplication with zero
is being performed.  We do this because zero is the default value
for polynomials.  Affine expressions, by contrast, have no default value
and so we should not return an empty result in this case.

Reported-by: Tomofumi Yuki <tomofumi.yuki@gmail.com>
Tested-by: Tomofumi Yuki <tomofumi.yuki@gmail.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_aff.c
isl_fold.c
isl_polynomial.c
isl_pw_templ.c
isl_test.c