The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
28.82k
stars
11.91k
forks
source link
clang-cl --target=aarch64-pc-windows-msvc generates unnecessary stack read/write instructions #88012
Open
mcfi opened 6 months ago
Build the following with clang18.1.1 with this command
clang-cl c.cpp --target=aarch64-pc-windows-msvc /c /O2 /FA
.In the generated code, see below,
ldr x9, [sp]
andstr x9, [sp]
are not needed.