[Polly] Fix -polly-opt-isl -analyze
authorMichael Kruse <llvm-project@meinersbur.de>
Fri, 10 Jul 2020 21:05:42 +0000 (16:05 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Fri, 10 Jul 2020 21:42:03 +0000 (16:42 -0500)
commit32bf46842025b740de870dbcd446e4b0f203c9aa
tree6617acdd5c288b2437bb9d067a557fe07a9acdaa
parent1d68a780b34e1f18f865d0754fce6c6177dc5d21
[Polly] Fix -polly-opt-isl -analyze

The member LastSchedule was never set, such that printScop would always
print "n/a" instead of the last schedule.

To ensure that the isl_ctx lives as least as long as the stored
schedule, also store a shared_ptr.

Also set the schedule tree output style to ISL_YAML_STYLE_BLOCK to avoid
printing everything on a single line.

`opt -polly-opt-isl -analyze` will be used in the next commit.
polly/lib/Transform/ScheduleOptimizer.cpp
polly/test/ScheduleOptimizer/mat_mul_pattern_data_layout_2.ll
polly/test/ScheduleOptimizer/pattern-matching-based-opts_3.ll
polly/test/ScheduleOptimizer/tile_after_fusion.ll