Skip to content
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

pasim sometimes doesn't print stats #28

Open
Emoun opened this issue Sep 11, 2023 · 0 comments
Open

pasim sometimes doesn't print stats #28

Emoun opened this issue Sep 11, 2023 · 0 comments

Comments

@Emoun
Copy link
Member

Emoun commented Sep 11, 2023

When pasim is given the --print-stats some_fn it should print stats that are exclusively for that function.
For some programs, when this flag is given, no stats are printed at all.
An example program is cosf from the tacle benchmark when compiled with the options -O2 -mllvm --mpatmos-disable-vliw=false. I have not found a minimal example that triggers this.

I dug around in the code and found out that this loop is at fault.
From the comments it seems the enclosing blocks are trying to identify longjmps.
But, since they cannot be handled correctly, the debug stack is just deleted, meaning nothing gets printed at the end.

Because the printing is essential for performance measurements, I will be commenting out this block of code.
This issue will track the eventual fixing whatever the underlying issue is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant