-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
"a" is "b"
is true
#4556
Comments
This bug is not related to LLVM or wrong optimization by LLVM. The generated code does not even contain an Edit: Actually this is related to LLVM. The bug shows up since LLVM 11.0.1, not with 11.0.0. LDC 1.25 happens to be released with LLVM 11.0.1, LDC 1.24 with LLVM 11.0.0. Reproducer for change of LLVM behavior: https://llvm.godbolt.org/z/T4G9jcs1e |
Related LLVM change: https://reviews.llvm.org/D87123 |
…ion expressions that are more complex than a simple integer. Resolves issue ldc-developers#4556
Repro:
The issue goes away if I switch to
IRBuilder<llvm::NoFolder>
. I suspect this is a side effect of strings beingunnamed_addr
, meaning LLVM not-entirely-unreasonably concludes "well, I can interpreticmp eq i8* @.str.1, @.str.2
however I feel like". Of course, "a" will never actually be merged with "b", but...The text was updated successfully, but these errors were encountered: