-
Notifications
You must be signed in to change notification settings - Fork 57
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
Vitis deletes LLVM code? #7
Comments
I am using Vitis HLS 2021.1 (both the frontend from this repo and the backend) on Ubuntu 20.04. This error happens on various different input codes, and what they have in common is that I unrolled some loops in the LLVM IR before passing it to Vitis. |
Hello @SerenaC94 , it's probably auto optimized out depends on the interface setting. I'll suggest to try with assigning array compatible interface in your IR to see if it brings your expected IR in mind. |
I think I have solved the issue by making sure that instead of pointers I can see arrays in the input IR. So moving from something like this
to something like this
Thanks for the pointer! |
Hi,
I am observing unexpected behavior when passing an LLVM IR to Vitis. The synthesis process arrives to the end with no errors, but in the reports everything is zero (0 cycles, 0 DSP, etc). So I traced back in the log to the first pass that is applied to the custom LLVM input, and found this:
Then I disassembled a.g.lto.bc, and it looks like all the input code has disappeared (it was >1800 lines in the LLVM IR):
I am attaching all the code needed to reproduce the issue in atax_issue.zip. I have no clues as to what is happening here, any help is appreciated.
The text was updated successfully, but these errors were encountered: