Skip to content

SPU LLVM: Small FCGT optimization#16740

Merged
elad335 merged 1 commit into
RPCS3:masterfrom
Whatcookie:SPU
Feb 22, 2025
Merged

SPU LLVM: Small FCGT optimization#16740
elad335 merged 1 commit into
RPCS3:masterfrom
Whatcookie:SPU

Conversation

@Whatcookie

Copy link
Copy Markdown
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
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