PetScan::extract_scop: clear writes at outer level
commit5f481c8769ee19a15779eb4d39d69a2313997234
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 4 Jan 2014 10:25:53 +0000 (4 11:25 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 25 Mar 2014 13:36:28 +0000 (25 14:36 +0100)
tree2ffedfb3dfb8648fc9bced572b87861ee5d4b29b
parentb91a448743589f9cd0d3e3d71944d6e5814f1f13
PetScan::extract_scop: clear writes at outer level

Before this commit, we would only clear writes inside the bodies
of other constructs.  This means that variables that get written
somewhere inside the tree may initially get treated as parameters.
This is not so much of a problem now, but in a subsequent commit,
we will start plugging in affine expressions and then we do not
want these variables to be treated as parameters as they would
then incorrectly be considered affine.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc