-
Notifications
You must be signed in to change notification settings - Fork 564
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
spirv-opt: CCP pass still changes the module and returns SuccessWithoutChange #3738
Comments
@dnovillo for info. |
Thanks. I'll try to work on it this week. |
@Vasniktel apologies for the delay. It is unlikely that I will have time to work on this in the next couple of weeks. |
@dnovillo, no worries :) |
dnovillo
added a commit
to dnovillo/SPIRV-Tools
that referenced
this issue
Sep 11, 2020
…constant. In KhronosGroup#3636, I missed that the instruction folder may create more than a single constant per call. Since CCP was only checking whether one constant had been created after folding, it was wrongly thinking that the IR had not changed. Fixes KhronosGroup#3738.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following shader
produces an error
when executed with
spirv-opt <compiled binary> -o out.spv --ccp --validate-after-all
.Can be reproduced on 4dd1223.
The situation is similar to #3636 except that the created constant is not returned and instead used internally by the folder. In this particular example, the folder creates a constant
1
and1 - %534
(this is required by theOpFMix
instruction).The text was updated successfully, but these errors were encountered: