isl_scheduler.c: intra_dim_map: handle NULL input
commit4a2dd2b7b5de8a9aeb1d8e795ad4fa58a0906589
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Fri, 28 Jul 2017 08:41:33 +0000 (28 10:41 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Sun, 30 Jul 2017 10:54:46 +0000 (30 12:54 +0200)
tree4c4a601eebd5d13374e80f0455c53efb3442ff18
parentcc1d58fd39b04839d136b68f9850f1939f666eac
isl_scheduler.c: intra_dim_map: handle NULL input

It is not clear if any of these inputs can be NULL
in the current code base, but since the implementation depends
on these inputs not being NULL, it is best to check anyway.
In particular, if graph->lp is NULL, then the allocated isl_dim_map
will be too small for the subsequent operations.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_scheduler.c