Skip to content

[NFC] Optimize kernel traversal in CompileTimePropertiesPass.#21434

Merged
bader merged 1 commit intointel:syclfrom
bader:lowerir
Mar 4, 2026
Merged

[NFC] Optimize kernel traversal in CompileTimePropertiesPass.#21434
bader merged 1 commit intointel:syclfrom
bader:lowerir

Conversation

@bader
Copy link
Copy Markdown
Contributor

@bader bader commented Mar 4, 2026

This patch improves KernelCache to capture kernels for any target rather
than just for NVPTX and AMDGCN. Use kernel information captured by the
KernelCache to traverse kernels in CompileTimePropertiesPass.

NOTE: KernelCache is also used by GlobalOffset.cpp, but corresponding
pass explictly applies only to modules with NVPTX and AMDGCN target
triples. This means that KernelCache improvement has no impact on
GlobalOffsetPass.

This patch improves KernelCache to capture kernels for any target rather
than just for NVPTX and AMDGCN. Use kernel information captured by the
KernelCache to traverse kernels in CompileTimePropertiesPass.

NOTE: KernelCache is also used by GlobalOffset.cpp, but corresponding
pass explictly applies only to modules with NVPTX and AMDGCN target
triples. This means that KernelCache improvement has no impact on
GlobalOffsetPass.
@bader bader requested a review from a team as a code owner March 4, 2026 01:18
@bader
Copy link
Copy Markdown
Contributor Author

bader commented Mar 4, 2026

Pre-commit failures are unrelated.

@bader bader merged commit edb1160 into intel:sycl Mar 4, 2026
28 of 30 checks passed
@bader bader deleted the lowerir branch March 4, 2026 02:07
@bader
Copy link
Copy Markdown
Contributor Author

bader commented Mar 4, 2026

Post-commit failures are unrelated as well.

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