-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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][Polly] Crash in Polly during code generation for libjpeg-turbo's jtransform_adjust_parameters
#117877
Comments
I've isolated the crash due to using these flags for the Polly-Parallelizer: Without these, the build compiles successfully. |
@llvm/issue-subscribers-polly Author: None (ms178)
I encountered a crash in Clang 20.0git 0cb5846 while compiling the libjpeg-turbo-git (3.0.90.r10.g9758c8a7) library with aggressive optimizations, including Polly, OpenMP, and LTO. The crash occurs during the compilation of `src/transupp.c`, specifically within the function `jtransform_adjust_parameters`.
1. Crash Information:
Crash Output/Stack Trace:
transupp-2fe439.c.txt Additional Notes:
|
As I was asked to post the output with
transupp-d9a02e.c.txt And this one:
|
I've also run into this same bug when compiling a different project w/ clang 20 & polly w/ openmp Since it is relatively small, I decided to try lowering it to llvm ir and run bugpoint on it And right now I'm running
Does the part where it says
Mean that bugpoint automatically fixed the initial issue with running the "safe" backend? |
By default, I'd suggest using llvm-reduce, not bugpoint: as you've found, it's very hard to use bugpoint correctly. This looks similar to #118963, but not sure if it's actually the same thing. |
Yes @efriedma-quic, This is similar issue. But the cause of issue is in different part of source. Meanwhile below is the reduced test case.
|
The patch llvm#102460 already implements separate DT/LI/SE for parallel sub function. Crashes have been reported while region generator tries using oringinal function's DT while creating new parallel sub function due to checks in llvm#101198. This patch aims at fixing those cases by switching the DT/LI while generating parallel function using Region Generator. Fixes llvm#117877
I encountered a crash in Clang 20.0git 0cb5846 while compiling the libjpeg-turbo-git (3.0.90.r10.g9758c8a7) library with aggressive optimizations, including Polly, OpenMP, and LTO. The crash occurs during the compilation of
src/transupp.c
, specifically within the functionjtransform_adjust_parameters
.1. Crash Information:
src/transupp.c
(from libjpeg-turbo)jtransform_adjust_parameters
Crash Output/Stack Trace:
transupp-2fe439.c.txt
transupp-2fe439.sh.txt
transupp-f787bc.c.txt
transupp-f787bc.sh.txt
Additional Notes:
The text was updated successfully, but these errors were encountered: