Skip to content

[LLVM][TableGen] Speed up sorting of intrinsics #109230

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
Sep 19, 2024

Conversation

jurahul
Copy link
Contributor

@jurahul jurahul commented Sep 19, 2024

Speed up sorting of intrinsics by using the TargetPrefix to only discriminate beteween target dependent vs target independent intrinsics where target independent ones need to be sorted before target dependent ones. When comparing two target dependent intrinsics, the Name already includes llvm.<TargetPrefix> as a prefix, so no need to needlessly compare it separately.

Copy link

github-actions bot commented Sep 19, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@jurahul jurahul force-pushed the intrinsic_emitter_sort_tweak branch from 88979af to 41e95d2 Compare September 19, 2024 04:43
@jurahul jurahul marked this pull request as ready for review September 19, 2024 05:44
Speed up sorting of intrinsics by using the TargetPrefix to only
discriminate beteween target dependent vs target independent intrinsics
where target independent ones need to be sorted before target dependent
ones. When comaring two target dependent intrinsics, the Name already
includes llvm.<TargetPrefix> as a suffix, so no need to needlessly
compare it separately.
@jurahul jurahul force-pushed the intrinsic_emitter_sort_tweak branch from 41e95d2 to fb3928d Compare September 19, 2024 12:26
@jurahul jurahul merged commit 91fd3e7 into llvm:main Sep 19, 2024
8 checks passed
@jurahul jurahul deleted the intrinsic_emitter_sort_tweak branch September 19, 2024 17:23
tmsri pushed a commit to tmsri/llvm-project that referenced this pull request Sep 19, 2024
Speed up sorting of intrinsics by using the TargetPrefix to only
discriminate beteween target dependent vs target independent intrinsics
where target independent ones need to be sorted before target dependent
ones. When comparing two target dependent intrinsics, the Name already
includes `llvm.<TargetPrefix>` as a prefix, so no need to needlessly
compare it separately.
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