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

SAME54: Use best optimization level #5579

Merged
merged 2 commits into from Nov 16, 2021

Conversation

jepler
Copy link
Member

@jepler jepler commented Nov 13, 2021

It's likely that this is a relic of my early testing.

It's likely that this is a relic of my early testing.
@dhalbert
Copy link
Collaborator

I think the -O2s were from #3190. I had to change back the SAMX51's because 512kB of flash was no longer sufficient.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

I would suggest that we not do this. #3190 found significant performance improvements with -O2. On SAME54 right now, we have plenty of flash, so let's not do this unless necessary. It's too bad the SAMx51 builds are filling up enough to have to go back to -Os, but that's the price of features :)

@dhalbert
Copy link
Collaborator

Closing based on my review, but can revisit.

@dhalbert dhalbert closed this Nov 16, 2021
@jepler
Copy link
Member Author

jepler commented Nov 16, 2021

Do we want to ditch the "no inline" flag though?

@dhalbert dhalbert reopened this Nov 16, 2021
@dhalbert
Copy link
Collaborator

Do we want to ditch the "no inline" flag though?

Trying that.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

OK, -O2 fits on the big SAME54, so let's get better performance in this case.

@dhalbert dhalbert merged commit 582a923 into adafruit:main Nov 16, 2021
@dhalbert dhalbert changed the title same54: Use the same optimization as other sam d5x/e5x SAME54: Use best optimization level Nov 29, 2021
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.

None yet

2 participants