You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clang version in use: 13.0.0 (installed from Gentoo's package manager), but the problem is not Gentoo-specific and I could reproduce with current trunk as well. (Godbolt: https://gcc.godbolt.org/z/boxqK5r6d)
Compiling the following C++ code with clang++ -c -target i386-windows x.cpp fails with error in backend: failed to perform tail call elimination on a call site marked musttail error. When clang is compiled with assertions, the error message is musttail call must precede a ret with an optional bitcast.
What happens is that the x86-winehstate LLVM pass inserts instructions between the musttail call and the ret instructions, which makes the code invalid.
Clang version in use: 13.0.0 (installed from Gentoo's package manager), but the problem is not Gentoo-specific and I could reproduce with current trunk as well. (Godbolt: https://gcc.godbolt.org/z/boxqK5r6d)
Compiling the following C++ code with
clang++ -c -target i386-windows x.cpp
fails witherror in backend: failed to perform tail call elimination on a call site marked musttail
error. When clang is compiled with assertions, the error message ismusttail call must precede a ret with an optional bitcast
.The reduced
bugpoint-reduced-simplified.bc
from runningbugpoint -run-llc x.bc
is uploaded here: https://web.tresorit.com/l/VVWGy#E9cy7Z9o6YakdQ_jmTsPPwWhat happens is that the
x86-winehstate
LLVM pass inserts instructions between themusttail call
and theret
instructions, which makes the code invalid.IR dump before and after the x86-winehstate pass
The text was updated successfully, but these errors were encountered: