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

[TailDup] Allow large number of predecessors/successors without phis.… #9878

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

fhahn
Copy link

@fhahn fhahn commented Jan 24, 2025

… (llvm#116072)

This adjusts the threshold logic added in llvm#78582 to only trigger for cases where there are actually phis to duplicate in either TailBB or in one of the successors.

In cases there are no phis, we only have to pay the cost of extra edges, but have no explosion in PHI related instructions.

This improves performance of Python on some inputs by 2-3% on Apple Silicon CPUs.

PR: llvm#116072

…llvm#116072)

This adjusts the threshold logic added in llvm#78582 to only trigger for
cases where there are actually phis to duplicate in either TailBB or in
one of the successors.

In cases there are no phis, we only have to pay the cost of extra edges,
but have no explosion in PHI related instructions.

This improves performance of Python on some inputs by 2-3% on Apple
Silicon CPUs.

PR: llvm#116072
@fhahn fhahn requested a review from a team as a code owner January 24, 2025 14:16
@fhahn
Copy link
Author

fhahn commented Jan 24, 2025

@swift-ci please test

@fhahn
Copy link
Author

fhahn commented Jan 24, 2025

@swift-ci please test llvm

@fhahn fhahn merged commit 578d2a2 into swiftlang:stable/20240723 Jan 25, 2025
2 of 5 checks passed
@fhahn fhahn deleted the taildup branch January 25, 2025 13:40
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.

1 participant