-
Notifications
You must be signed in to change notification settings - Fork 171
[WASM_x86] Fix a bug that calculates the label_index in the Br visitor #1299
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
[WASM_x86] Fix a bug that calculates the label_index in the Br visitor #1299
Conversation
…dex in the `Branch` visitor
Thirumailai, it seems the condition
By same |
|
Yup, got it. I think the condition fine for the moment.
It is more abstract/conceptual. In simple words, what I mean by As the tests pass, let's merge this for the moment and we can improve upon it incrementally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested some cases locally. It seems to work.
Before splitting into two id's (if_id, loop_id), I thought to use the same approach as wasm does i.e., using nesting_level. Like push_back both loop_id and if_id into one stack. Later I realized it is difficult to retrieve the correct id's in the nested if_loop statement. |
Yes, I guessed. Since
I am not sure how much this ideal case is possible, but we need-to/should try/experiment and see. |
Fixes: #1298