Skip to content

[SYCL] resolve double free in CleanupSYCLMetadataFromLLVMUsed Pass#22016

Open
maksimsab wants to merge 1 commit into
intel:syclfrom
maksimsab:fix-cleanup-sycl-metadata-pass
Open

[SYCL] resolve double free in CleanupSYCLMetadataFromLLVMUsed Pass#22016
maksimsab wants to merge 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

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.

3 participants