-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Stop forcing i1
booleans to i8
for comparison when LLVM is fixed
#40980
Comments
We still support 3.7. |
The LLVM bug in question appears to be https://bugs.llvm.org/show_bug.cgi?id=30579 , which is now marked resolved. Presumably the workaround in #36958 can now be removed, so I'm marking this E-easy. However, don't just revert the commit itself; leave its test case intact. |
Comment 2 on the LLVM bug indicates the fix is in LLVM 4.0, but we still support LLVM 3.9, so we can't actually do this just yet. |
Is LLVM 3.9 still supported? @rkruppe |
I'm not aware of any changes. Indeed we still have a CI image that builds with LLVM 3.9. |
Huh, I've only just seen https://bugs.llvm.org/show_bug.cgi?id=30579#c3 -- if this is correct, there was never any need to work around it, we could have just dropped our (incorrect) FastISel patch. Does someone have to have a (non-rustc) LLVM 3.9 build available to try and reproduce? |
@nox was so kind as to check, and indeed stock LLVM 3.9 doesn't have the bug. |
Remove hack around comparisons of i1 values (fixes #40980) The regression test still passes without that 2 years old hack. The underlying LLVM bug has probably been fixed upstream since then.
The current behavior introduced by #36958 is a workaround for the bug at #36856 . In the comment at #36958 (comment) Niko mentions that this is worth removing when the upstream LLVM bug is fixed (per that comment's suggestion I'm also presumptuously tagging this as P-medium). I know we have an upgrade to LLVM 4.0 in the works ( #37609 ), so that may fix it. However, what is our policy on compiling on old versions of LLVM, for the sake of rustc distribution in distros that ship their own LLVM? If we need to remain compatible with old versions of LLVM, then the workaround may need to exist for quite a long time.
The text was updated successfully, but these errors were encountered: