-
Notifications
You must be signed in to change notification settings - Fork 8
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
Test has incorrect lowering #410
Comments
That's odd! Lowering should still go through the type checker. Can you try using |
Issue is in the typecheck. I'll see if I can find a fix Error from
Bounds check can be bypassed if the index is stored in a variable Minimal example The following fails as expected
This passes when it should not
In the test The final generated HLS code
|
I guess this case could be considered valid.
It's possible for a variable to change
It can be inlined if either if it's marked as a constant or a compilation pass inlines it. |
The test file-tests/should-lower/hoist.fuse fails typecheck as there is an out of bounds access
let w = b[10 * 12];
. However when--lower
is present it seems to pass.Error without
--lower
The text was updated successfully, but these errors were encountered: