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
FastISel causes assertion "i8 shifts should be handled by autogenerated table" #36079
Comments
assigned to @topperc |
This was caused by r316797 when I removed what I thought was dead code. But it turns out its not dead if the shift amount is out of bounds. The test case here shows a shift amount of -1. Any idea where this shift amount came from? |
Reverted with a test case in r327540. |
Thanks Craig for the quick fix!
The original Julia code that this is from ishttps://github.com/JuliaLang/julia/blob/71ef5a03987030c0b675f3e973cb6d64c8b22bb2/base/intfuncs.jl#L569-L579 and I attached IR Julia generates. If you want I can probably try and get you the LLVM IR after all the Julia specific LLVM passes and the opt pipeline have run, since the IR right now is contains Julia specific stuff. |
Reopened for inclusion in 6.0.1 |
Hi Craig, Is this OK to merge to the release_60 branch? |
Yes its ok to merge. Thanks! |
Merged: r331815 |
Extended Description
I am currently looking into upgrading the Julia frontend to use LLVM 6.0
With FastISel on I run into the assertion:
I reduced dumped the module with bugpoint to the attached input file, which triggers the assertion with
llc -fast-isel bugpoint.ll
.The text was updated successfully, but these errors were encountered: