ScheduleOpt: Do not crash on statements with empty iteration domains
authorTobias Grosser <grosser@fim.uni-passau.de>
Wed, 10 Apr 2013 22:48:08 +0000 (22:48 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Wed, 10 Apr 2013 22:48:08 +0000 (22:48 +0000)
commitf242b806ac8bc61b9fcdf26ae2dcb57dae52a616
tree154f95c1d57929e7008777a6669503d8fcf6341b
parent8fc29db312282fb6f025ad2042ad60cd727d288d
ScheduleOpt: Do not crash on statements with empty iteration domains

Statements with an empty iteration domain may not have a schedule assigned by
the isl schedule optimizer. As Polly expects each statement to have a schedule,
we keep the old schedule for such statements.

This fixes http://llvm.org/PR15645`

Reported-by: Johannes Doerfert <johannesdoerfert@gmx.de>
llvm-svn: 179233
polly/lib/ScheduleOptimizer.cpp
polly/test/ScheduleOptimizer/2013-04-11-Empty-Domain-two.ll [new file with mode: 0644]