-
Notifications
You must be signed in to change notification settings - Fork 18
[RISCV] Fix xcvbi bugs #64
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
Conversation
Fix looks good! Since we are probably going to squash this into the xcvbi commits as a fixup when upstreaming, it wouldn't make sense to have a specific regression test for this in that case. But if you can provide some way of reproducing this issue as a separate issue in the issue tracker and link this PR as the fix - just some IR output from the frontend that causes the crash. Otherwise this is good to merge, if the person who merges this is able to write a descriptive commit message when merging. |
I have to convert this into a Draft PR because I ran into a few more bugs related to the immediate Branching instructions.
Here are some preliminary benchmark results with the workarounds implemented. Only up to 1% speedup (in dynamic instruction count) can be obtained here. |
Proposal for unit test can be found here: #67 (comment) |
Since the upstreaming of |
No. Only encoding (Machine Code) is included in D154412, while this PR affects CodeGen, which is planned be submitted to LLVM after the encoding of all patches of encoding (in #65) are finished. So this PR will not immediately affect D154412 AFAICT. |
@melonedo Oh, I missed that. Then a merge of this is not so urgent. Sorry for the confusion. |
@PhilippvK Thanks for this. Do you wish to resolve the remaining questions, so we can get this merged. Thanks |
Sorry for the delay. I will add the proposed unit tests today or over the weekend. After that it should be ready to merge. |
I've tested this pull request on top of the latest development branch and the macOS tests pass. So it's good to merge. It would be good to have the commits squashed into fewer or one commit if possible as some of the commits are just about fixing the indentation. |
[RISCV] regenerate corev/bi.ll assertions with update_llc_test_checks.py
0edc964
to
5643973
Compare
Rebased on top of |
I ran into these issues using
+xcvbi
in TVM's LLVM backend. The patches are minimal but I am not sure how to add a unit test for this bugfix.