Skip to content

WIP: [flang] Enable fir alias tags pass by default when optimizing for speed #68597

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

Closed
wants to merge 1 commit into from

Conversation

tblah
Copy link
Contributor

@tblah tblah commented Oct 9, 2023

Enable by default when optimizing for speed.

Previous PR in this series: #68595

This PR is only for review of 0810f90041bb7ece83510193db6c420bb679f22a (and any fixups)

This is WIP until performance regressions due to the TBAA tags are resolved.

@tblah tblah changed the title [flang] Enable fir alias tags pass by default when optimizing for speed WIP: [flang] Enable fir alias tags pass by default when optimizing for speed Oct 10, 2023
@vzakhari
Copy link
Contributor

vzakhari commented Nov 1, 2023

Hi @tblah, is this ready for a merge? Let me know if you are just waiting for a review.

@tblah
Copy link
Contributor Author

tblah commented Nov 2, 2023

Hi @vzakhari, currently there is a serious performance regression in spec2017 exchange2. With the TBAA tags we produce slightly better code (less repeated loads, hoisting some code out of loops, etc). Unfortunately, this change to the generated code causes LLVM's function specialization pass to incorrectly judge that specialization will not be profitable, leading to the large performance regression.

@Leporacanthicus is working on this now. If you're happy, I think we can enable the tbaa tags by default after that.

Enable by default when optimizing for speed.

For simplicity, only forward the flag to the frontend driver when it
contradicts what is implied by the optimization level.
@tblah tblah force-pushed the ecclescake/tbaa-squashed branch from 0810f90 to 6000017 Compare November 22, 2023 11:49
@tblah
Copy link
Contributor Author

tblah commented Nov 22, 2023

Sorry for the noise all. Closing and re-creating to avoid pinging everyone with review

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.

2 participants