-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang: 18: hangs with a short program in Polly's runIslScheduleOptimizer #69090
Comments
@llvm/issue-subscribers-polly Author: wt.cc (wierton)
Reproducer: https://godbolt.org/z/8K3cs6ood
When compile below program with `-O1 -mllvm -polly`, clang hangs:
|
Hi @wierton |
@kartcq It looks like the computation steps for compule_schedule by isl needs to be bounded. (You can refer Dependences::calculateDependences for an example) |
…d in polly (#77280) 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. Fixed the test that failed in previous commit. Fixes #69090
…d in polly (llvm#77280) 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. Fixed the test that failed in previous commit. Fixes llvm#69090
Reproducer: https://godbolt.org/z/8K3cs6ood
When compile below program with
-O1 -mllvm -polly
, clang hangs:The text was updated successfully, but these errors were encountered: