pet_scop_collect_arrays: only collect subfields of outer array once
commitd2b224d4f8b07f73722ef9739569a41773e94d9c
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 7 Mar 2017 10:06:54 +0000 (7 11:06 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 8 Mar 2017 16:49:45 +0000 (8 17:49 +0100)
treed4ddbb3a9ec9d004edc62d5cf2045d7afac09ad9
parent4d67fa6f1761c985c19f187f427b5e6da9350cac
pet_scop_collect_arrays: only collect subfields of outer array once

An outermost array that is accessed more than once (directly or
through a subfield) had its subfields scanned for every such access.
Doing it once is enough.

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