-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
LLVM 18 breaks inlining callees with compatible target attributes #70002
Comments
It seems such definition should be added:
Introducing such clang-18 dedicated definitions is strange |
You should pass |
It can not work, since I use desktop to build the program without avx512 supported. The only approach right now is to add
|
Hi @dtcxzyw , I understand this new target was added to support AVX10. We are not always able to follow your suggestion of a global -mavx512 flag because we also want to support dynamic dispatch. Will it be sufficient to add "evex512" to the list of targets we specify (via pragma) to individual functions? That would be conditional on the compiler supporting evex512, we can check |
Did you mean |
That is included in the list we use: The error @yingfeng is running into is Possibly this is caused by their extra compiler flags |
Consider the following code:
When compiling with previous versions of clang (up to and including version
llvmorg-18-init
), it can be compiled normally. While when switching to the head of LLVM 18, following errors are got:This issue seems to relate with 65205
The text was updated successfully, but these errors were encountered: