Skip to content

[SYCL][ESIMD] Don't add align attributes on sret arguments. #2132

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

kbobrovs
Copy link
Contributor

Adding align attributes leads to very inefficient code generation.

Author: Denis Bakhvalov [email protected]

Signed-off-by: Konstantin S Bobrovsky [email protected]

Adding align attributes leads to very inefficient code generation.

Author: Denis Bakhvalov <[email protected]>

Signed-off-by: Konstantin S Bobrovsky <[email protected]>
@kbobrovs kbobrovs added the esimd Explicit SIMD feature label Jul 17, 2020
@elizabethandrews
Copy link
Contributor

Please add a test

@kbobrovs
Copy link
Contributor Author

Please add a test

I tried to but still no success. @DenisBakhvalov, can you help with test case? vadd_2d does not seem to have this problem anymore.

@DenisBakhvalov
Copy link
Contributor

Please add a test

I tried to but still no success. @DenisBakhvalov, can you help with test case? vadd_2d does not seem to have this problem anymore.

I checked it as well. This workaround may not be needed anymore.

@kbobrovs
Copy link
Contributor Author

The problem is not reproducible anymore - closing.

@kbobrovs kbobrovs closed this Jul 22, 2020
@kbobrovs kbobrovs deleted the esimd1-sret-attr branch July 30, 2020 12:29
@kbobrovs kbobrovs restored the esimd1-sret-attr branch July 30, 2020 12:30
@kbobrovs kbobrovs deleted the esimd1-sret-attr branch May 4, 2022 17:48
jsji pushed a commit that referenced this pull request Aug 31, 2023
Add basic LLVM-to-SPIR-V support for the SPV_EXT_image_raw10_raw12
extension, enabling the extension if constants from the extension are
found in the LLVM IR.

The extension adds 2 new return values for `OpImageQueryFormat`, which
are integer constants that may appear anywhere in LLVM IR.
Distinguishing between the extension's constants and arbitrary
constants that happen to have the same value as the extension's
constants is not possible in general.  Hence this patch only covers
some common use cases, where the result of `OpImageQueryFormat` is
directly used in an integer comparison or switch instruction.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@8564fd4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
esimd Explicit SIMD feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants