Skip to content

SPU LLVM: Small FCGT optimization #16740

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

Merged
merged 1 commit into from
Feb 22, 2025
Merged

SPU LLVM: Small FCGT optimization #16740

merged 1 commit into from
Feb 22, 2025

Conversation

Whatcookie
Copy link
Member

When one operand is a constant, finite number, clamp the other input and directly compare.
Ideally compiles down to just two instructions.

The nonzero optimization is removed since it's already handled by the finite number optimization.

@elad335 elad335 added CPU Optimization Optimizes existing code labels Feb 22, 2025
@elad335 elad335 merged commit bd49c6b into RPCS3:master Feb 22, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CPU Optimization Optimizes existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants