gpu.c: compute_schedule: take domain from ppcg_scop
commit63954822b5a20cf02983394a54bce2071f3bf8e5
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 16 Oct 2012 18:25:37 +0000 (16 20:25 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 12 Nov 2012 11:25:31 +0000 (12 12:25 +0100)
tree8ac94bc1da9f36c1a0a9fbb9744a89f539a4cce9
parent8c4af29e639b24582dbfb56f61d0f434c18aa87c
gpu.c: compute_schedule: take domain from ppcg_scop

The original code would extract them from the prog->stmts,
but the domain is already available from the ppcg_scop,
so there is no need to keep track of them in prog->stmts anymore.
Using the domain from the ppcg_scop will allow the gpu code
generator to take advantage of operations performed on this
domain that are shared with the cpu code generator.

Note that this may result in some changes in the generated
code because the order of the statements in the internal
representation may be different.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu.c
schedule.h