gpu.c: add_to_from_device: move call to node_may_persist up
commit69428032b6c03cda7e67f602440ae7c83e22dac3
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Fri, 24 Dec 2021 13:36:44 +0000 (24 14:36 +0100)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sun, 26 Dec 2021 14:00:56 +0000 (26 15:00 +0100)
treee54bd32883affdadf0e15360094e025616582a58
parent9e93444ae27e2f55b491b85d7215f93c305a7657
gpu.c: add_to_from_device: move call to node_may_persist up

In an upcoming commit, the copy-out relation in terms
of the statement instances will be passed down to node_may_persist.
The call therefore needs to be performed before
the statement instances are replaced by the prefix schedule
in the copy-out relation.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
gpu.c