-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Assertion `getMinSignedBits() <= 64 && "Too many bits for int64_t"' failed in Loop Strength Reduction with new SCEV-based salvaging #50671
Comments
assigned to @chrisjbris |
I've verified that this still fails after 2537120 as well. |
I forgot to mention the command line I'm using to reproduce the issue with the attached file. It's just |
Thanks for the comprehensive report. It looks pretty obvious what the culprit is. I will add a test to make sure APInt->getSextValue() isn't called for integers greater than INTMAX and hopefully that will do the trick for now. |
Fixed with 21ee38e |
Fix verified, thanks. |
This does not cherry-pick cleanly, can someone backport it and either attach a patch or push a branch to a personal git repo on github. |
I attempted to cherry-pick the series to the release branch myself and each was clean. Three commits were necessary, which I described here: https://reviews.llvm.org/D105207. I think its not clear from this bug alone which commits are required. pehaps that was the reason for the un-clean cherry-pick attempt. The three cherry-picks together built & passed the lit suite cleanly so I have pushed to the release branch, with original commit hashes added to the messages. |
Merged: 8988ce3 |
mentioned in issue #51489 |
Extended Description
This assertion has been failing in some of our downstream tests each time D105207 gets checked in. I've verified that it fails at 0ba8595 but not at its parent. It also currently repros on godbolt with "assertions trunk": https://godbolt.org/z/n6T3zrsvY
Reproducer testcase attached.
The text was updated successfully, but these errors were encountered: