8000 lz4: remove unnecessary check of ip by JunHe77 · Pull Request #1301 · lz4/lz4 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lz4: remove unnecessary check of ip #1301

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
Oct 24, 2023
Merged

lz4: remove unnecessary check of ip #1301

merged 1 commit into from
Oct 24, 2023

Conversation

JunHe77
Copy link
Contributor
@JunHe77 JunHe77 commented Oct 23, 2023

ip has been advanced before the match finder loop, so (ip>anchor) will be always true before entering the loop.
This change generates better codegen with clang.

Change-Id: I2567cb7f4a16cc28496fc88c07dcd99601bc97b3

@JunHe77
Copy link
Contributor Author
< 8000 strong> JunHe77 commented Oct 23, 2023

With clang-16 and silesia, observed ~1.8 - 3% compression uplift for level-1/2 on Arm N1/N2, Apple M1 and Xeon 5218.
No obvious regression observed for gcc-13.

@Cyan4973 Cyan4973 self-assigned this Oct 23, 2023
ip has been advanced before the match finder loop,
so (ip>anchor) will be always true before entering
the loop.
This change generates better codegen with clang.

Change-Id: I2567cb7f4a16cc28496fc88c07dcd99601bc97b3
Signed-off-by: Jun He <jun.he@arm.com>
@Cyan4973 Cyan4973 merged commit 039ab46 into lz4:dev Oct 24, 2023
@JunHe77 JunHe77 deleted the clang-gen branch November 7, 2023 08:51
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.

2 participants
0