-
Notifications
You must be signed in to change notification settings - Fork 13.4k
LLVM ERROR: Cannot select: intrinsic %llvm.x86.aesni.aesenc #54055
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
Comments
And same error in freebsd can be found here |
@llvm/issue-subscribers-backend-x86 |
could you provide the LLVM IR for this case? it might be easier for us to reproduce the case. |
Well, since I am not familiar with LLVM, so please wait a moment and I will find out how to generate IR in this case. |
After some googling, I append |
Finally I generate some bit code files in the second build pass, I mean the PGO pass. I will first post all .bc files of libgkrust.a(wgpu_hal-785fcf12e540c33d.wgpu_hal.c740af7d-cgu.0.rcgu.o...), and then other .bc files. |
Maybe you can try to compile these .bc with llc to see if the error can be reproduced? Then you can use |
I am afraid I can not do that now. You see, the error occurred in linking, and the module where LLVM failed, the |
Well, I ran the LLC, and now it repeating report |
bugpoint-reduced-function.bc.tar.gz |
It's expected. It may take a long time if the bc file is too large. You can use
for pre-process. And run bugpoint with New.bc |
Got it. But |
Never mind, I can see the problem in your reduced bc file.
find this line |
I know a little about rust. but i know wgpu_hal is a rust crate. |
So this is a bug of rustc? |
Me either. But I guess so. Missing the features check before generating target specific intrinsics in FE looks a bug to me. |
OK, So I will post this to rust's issue. And Thanks a lot! @phoebewang |
IIUC this is a |
Same error with #53097
Compile firefox
97.0.1
with thin LTO.environment:
OS:
arch linux
.llvm, clang and lld version:
13.0.1
CPU: Intel(R) Core(TM) i7-4790 CPU, haswell
CFLAGS:
-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions -fasynchronous-unwind-tables -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-protector-strong -fstack-clash-protection -fcf-protection
CXXFLAGS:
$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS
LDFLAGS:
-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,-z,noexecstack
RUSTFLAGS:
-C opt-level=2 -C target-cpu=native
Since building firefox with PGO, the first pass compiling without thin LTO, and everything is OK, but in the second pass,
with thin LTO, while linking
libxul.so
, compiling failed with logs below:I am afraid that this question exist since llvm 12.
What's more, I have an laptop with Intel(R) Core(TM) i7-11800H CPU, which is tiger lake architecture, while building this with same configuration (I am quiet sure about it, since I build them in "clean build" , so called in arch development, using
systemd-nspawn
to get a clean build root), and no error like this.I open a new issue here because i do not know to reopen #53097.
@phoebewang
The text was updated successfully, but these errors were encountered: