[polly][ScheduleOptimizer] Fix long compile time(hang) reported in polly (#75141)

There is no upper cap set on current Schedule Optimizer to compute
schedule. In some cases a very long compile time taken to compute the
schedule resulting in hang kind of behavior. This patch introduces a
flag 'polly-schedule-computeout' to pass the capwhich is initialized to
300000. This patch handles the compute out cases by bailing out and
exiting gracefully.

Fixes #69090

GitOrigin-RevId: d6c4d4c9b910e8ad5ed7cd4825a143742041c1f4
2 files changed