use sese_l throughout scop-detection
authorAditya Kumar <aditya.k7@samsung.com>
Thu, 1 Oct 2015 22:04:20 +0000 (22:04 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Thu, 1 Oct 2015 22:04:20 +0000 (22:04 +0000)
commit0afd32be3ccd791f0ada5a4aac93e9a957dcd725
treeb906b6c08891f54fc7f2d5cb301a4a64957b38c3
parent65ef70d69574433ef8a0e26e31b8af7c0bbb65de
use sese_l throughout scop-detection

Use sese_l throughout SCoP detection and create vec<scop_p> at the very end when
all SCoPs have been identified. 'struct sese_l' is very lightweight (two
pointers) compared to 'struct scop'.

No functional change intended. Passes regtest and bootstrap.

gcc/ChangeLog:

2015-10-01  Aditya Kumar  <hiraditya@msn.com>

        * graphite-scop-detection.c (struct sese_l): New conversion constructor
          so that this type can be pushed into a vec.
        (class scop_builder): use sese_l to collect scops.
        (get_scops): New getter function.
        (remove_intersecting_scops): Use sese_l instead of scops_p.
        (intersects): Same.
        (add_scop): Same.
        (subsumes): Same.
        (remove_subscops): Same.
        (build_scops): Add scops to vec<scops_p> once all the scops have been
        detected.

From-SVN: r228359
gcc/ChangeLog
gcc/graphite-scop-detection.c