Skip to content
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

Add preserve_interface mode to aggressive_dead_code_elim #4520

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

greg-lunarg
Copy link
Contributor

This mode is needed by GPU-assisted validation instrumentation which
needs to do ADCE but cannot change the shader entry point interface.

@greg-lunarg
Copy link
Contributor Author

@alan-baker PTAL since you wrote the original code.

The shaderc and ubsan failures do not look to be related to my changes.

@greg-lunarg
Copy link
Contributor Author

greg-lunarg commented Sep 13, 2021

@jaebaek @dnovillo Given that @alan-baker has approved and the current CI failures are not related to my change, can someone please merge?

@jaebaek
Copy link
Contributor

jaebaek commented Sep 15, 2021

The error says clang-10: error: argument '-fno-sanitize-recover' is deprecated, use '-fno-sanitize-recover=undefined,integer' or '-fno-sanitize-recover=all' instead [-Werror,-Wdeprecated].

It was fixed by #4522.
I guess rebasing it will make it working.

This mode is needed by GPU-assisted validation instrumentation which
cannot change the shader entry point interface.
@jaebaek jaebaek merged commit 4ac8e5e into KhronosGroup:master Sep 15, 2021
airlied added a commit to airlied/SPIRV-Tools that referenced this pull request Dec 6, 2021
The change in
commit 4ac8e5e
Author: Greg Fischer <greg@lunarg.com>
Date:   Wed Sep 15 12:38:34 2021 -0600

    Add preserve_interface mode to aggressive_dead_code_elim (KhronosGroup#4520)

Broke the C++ ABI for spirv-tools shared libraries on Linux, for not a great reason.

Restore the previous ABI.
airlied added a commit to airlied/SPIRV-Tools that referenced this pull request Dec 9, 2021
The change in
commit 4ac8e5e
Author: Greg Fischer <greg@lunarg.com>
Date:   Wed Sep 15 12:38:34 2021 -0600

    Add preserve_interface mode to aggressive_dead_code_elim (KhronosGroup#4520)

Broke the C++ ABI for spirv-tools shared libraries on Linux, for not a great reason.

Restore the previous ABI.
s-perron pushed a commit that referenced this pull request Dec 9, 2021
The change in
commit 4ac8e5e
Author: Greg Fischer <greg@lunarg.com>
Date:   Wed Sep 15 12:38:34 2021 -0600

    Add preserve_interface mode to aggressive_dead_code_elim (#4520)

Broke the C++ ABI for spirv-tools shared libraries on Linux, for not a great reason.

Restore the previous ABI.
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.

None yet

3 participants