Skip to content

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