Description
Compiling firefox with rustc and clang, failed during PGO while linking libxul.so
with thin LTO
32:33.70 LLVM ERROR: Cannot select: intrinsic %llvm.x86.aesni.aesenc
I expected to see this happen: compile succeed
Instead, this happened: compile failed
Meta
build with stable rust, rustc version 1.58.1
And same error in freebsd can be found here
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
Building with same configuration succeed with Intel(R) Core(TM) i7-11800H CPU tigerlake
The LLVM developer's opinion can be found here, please take a look.