try and include initial declarations in outer block when autodetecting
commit76bf852363db5229107c1090e2856c67298ff76e
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 11 May 2015 13:19:26 +0000 (11 15:19 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 12 May 2015 10:55:35 +0000 (12 12:55 +0200)
tree8672bbdaaea779d9a014235f031664e2176bf1a5
parent495fa678d44f33a3fe4538911d883b083faaa1f4
try and include initial declarations in outer block when autodetecting

When autodetection is turned on, we skip declarations in the outer
block to avoid extracting a scop that consists of only declarations.
However, once we have been able to extract at least one statement,
there is no harm in trying to include some of these initial declarations
in the scop.  Their inclusion is useful as it allows the declared
variables to be killed at the end of the outer block.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc
scan.h
tests/autodetect/empty2.scop
tests/autodetect/scalar.scop