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

Log a warning instead of throwing an exception when opt is not availa… #666

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

hernanponcedeleon
Copy link
Owner

…ble in the system

…ble in the system

Signed-off-by: Hernan Ponce de Leon <hernanl.leon@huawei.com>
Copy link
Collaborator

@ThomasHaas ThomasHaas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this even work because you still return the path to the opt file (which was not generated)? Shouldn't you return the original file instead?
Also, I would make it more clear that we continue without optimizations. Something like this:

Failed to run opt (llvm optimizations). Continuing without optimizations.

@hernanponcedeleon
Copy link
Owner Author

Does this even work because you still return the path to the opt file (which was not generated)? Shouldn't you return the original file instead?

Good catch. I tested it, but in my case it was working because I have the -opt.ll file from a previous run.

Signed-off-by: Hernan Ponce de Leon <hernanl.leon@huawei.com>
Copy link
Collaborator

@ThomasHaas ThomasHaas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hernanponcedeleon hernanponcedeleon merged commit 124cecc into development Apr 30, 2024
1 check passed
@hernanponcedeleon hernanponcedeleon deleted the opt-missing branch April 30, 2024 08:47
tonghaining pushed a commit to tonghaining/Dat3M that referenced this pull request May 24, 2024
hernanponcedeleon#666)

Signed-off-by: Hernan Ponce de Leon <hernanl.leon@huawei.com>
Co-authored-by: Hernan Ponce de Leon <hernanl.leon@huawei.com>
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

Successfully merging this pull request may close these issues.

3 participants