scop.c: expr_extract_context: don't assume access is an affine expression
commit51a428d8640f4669a64719bf3e09781c5f4c53b2
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 12 Mar 2012 12:11:52 +0000 (12 13:11 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 6 Apr 2012 11:17:45 +0000 (6 13:17 +0200)
tree81d7ef3042ebed69ea7c56cf63407c0b847516ef
parent22e9b30d48e6755d9d11a8ca35453194acad1dcd
scop.c: expr_extract_context: don't assume access is an affine expression

When extracting a context from a ternary operator, we try to be more
accurate when the first argument is an affine expression.
However, we didn't actually check that the first argument is an affine
expression, but instead simply assumed that any access in this position
is an affine expression.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scop.c
tests/ternary.c [new file with mode: 0644]
tests/ternary.scop [new file with mode: 0644]