Skip to content

[SYCL] Disable dead store elimination in early optimizations #2487

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

Closed
wants to merge 1 commit into from

Conversation

againull
Copy link
Contributor

Dead store elimination in early optimizations causes fail on GPU target
for some cases.

Dead store elimination in early optimizations causes fail on GPU target
for some cases.
@againull againull changed the title [SYCL] Didsable dead store elimination in early optimizations [SYCL] Disable dead store elimination in early optimizations Sep 17, 2020
Copy link
Contributor

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Please remove the typo in the commit description.
Otherwise I am curious what is the problem with SYCL and the DeadStoreEliminationPass pass.

@bader
Copy link
Contributor

bader commented Sep 22, 2020

Dead store elimination in early optimizations causes fail on GPU target
for some cases.

I suspect "fail on GPU target" might be caused by some bugs in low-level runtime(s). I don't expect any problems on GPU target from removing dead stores.

@againull againull closed this Sep 25, 2020
@againull againull deleted the disable_dse branch December 3, 2022 00:03
iclsrc pushed a commit that referenced this pull request Apr 11, 2024
…cess to a buildin variable (#2487)

This PR is to fix the issue when SPIRV Translator expects now to see exactly GetElementPtrInst in an access chain for a builtin variable and crashes in lib/SPIRV/SPIRVUtil.cpp in replaceUsesOfBuiltinVar() with llvm_unreachable() call. See #2486 for the detailed description. Attached is a test case that demonstrates the problem and leads to a crash in current version(s) of SPIRV Translator.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@a7051670770f471
kbenzie added a commit to kbenzie/intel-llvm that referenced this pull request Feb 17, 2025
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
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