Skip to content

[SYCL] resolve double free in CleanupSYCLMetadataFromLLVMUsed Pass#22016

Merged
KornevNikita merged 1 commit into
intel:syclfrom
maksimsab:fix-cleanup-sycl-metadata-pass
May 18, 2026
Merged

[SYCL] resolve double free in CleanupSYCLMetadataFromLLVMUsed Pass#22016
KornevNikita merged 1 commit into
intel:syclfrom
maksimsab:fix-cleanup-sycl-metadata-pass

Conversation

@maksimsab
Copy link
Copy Markdown
Contributor

@maksimsab maksimsab commented May 13, 2026

The initial implementation gathered all operands from @llvm.used list and destroyed every value one by one. This patch considers the case when the list contains one value more than once.

Side change: register "remove-device-global-from-llvm-compiler-used" pass to allow testing using "opt" tool.

fixes: CMPLRLLVM-75178

Previous implementation gathered all operands from @llvm.used list and
destroyed every one by one. This patch considers the case when the list
contains one variable more than once.

fixes: CMPLRLLVM-75178
@maksimsab maksimsab requested a review from a team as a code owner May 13, 2026 20:04
Copy link
Copy Markdown
Contributor

@YuriPlyakhin YuriPlyakhin left a comment

Choose a reason for hiding this comment

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

LGTM

@lucyli-ca
Copy link
Copy Markdown
Contributor

/run

@maksimsab
Copy link
Copy Markdown
Contributor Author

@intel/llvm-gatekeepers Could we, please, merge that?

@KornevNikita
Copy link
Copy Markdown
Contributor

test failure: #22028

@KornevNikita KornevNikita merged commit 42b525d into intel:sycl May 18, 2026
29 of 30 checks passed
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.

4 participants