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

Optimized Lt128 operator for RVV #2079

Merged
merged 1 commit into from May 23, 2024

Conversation

lsrcz
Copy link
Contributor

@lsrcz lsrcz commented Apr 11, 2024

This pull request adds an optimized implementation of the Lt128 operator for RVV targets. The new implementation is synthesized using a program synthesizer.

The main computations use LMUL 1/8, which is usually more efficient than vector groups (LMUL > 1) and can outperform full vector registers (LMUL = 1) on some microarchitectures.

@lsrcz
Copy link
Contributor Author

lsrcz commented Apr 11, 2024

The compilation result: https://lt128.godbolt.org/z/xEK6v4f6f.

Copy link
Member

@jan-wassenberg jan-wassenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry it has taken so long, we have now recovered from the crashing RVV toolchain and reactivated tests.

This is a great idea to use the mask bits directly, congrats on finding it via the synthesizer!

@lsrcz lsrcz closed this May 23, 2024
@copybara-service copybara-service bot merged commit 281d856 into google:master May 23, 2024
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants