Repository navigation
[RISCV] Fix xcvbi bugs - #64
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
+xcvbiin TVM's LLVM backend. The patches are minimal but I am not sure how to add a unit test for this bugfix.