Skip to content

[SandboxIR][NFC] Change order of ifs in Context::getOrCreateValueInternal() #127891

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 19, 2025

Conversation

vporpo
Copy link
Contributor

@vporpo vporpo commented Feb 19, 2025

Move the most common if statement to the top and the least common ones to the bottom. This should save CPU cycles during compilation.

This patch also prefixes the llvm variables with the LLVM prefix to make the naming convention in this function more uniform. For example C to LLVMC.

…rnal()

Move the most common if statement to the top and the least common
ones to the bottom. This should save CPU cycles during compilation.

This patch also prefixes the llvm variables with the LLVM prefix
to make the naming convention in this function more uniform.
For example `C` to `LLVMC`.
@vporpo vporpo merged commit c0c42c8 into llvm:main Feb 19, 2025
7 of 9 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.

3 participants