-
Notifications
You must be signed in to change notification settings - Fork 689
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
[DxilOp] Allow generation of illegal DXIL operations. #6543
Conversation
This change change move IsOverloadLegal check in OP::GetOpFunc back into DXASSERT. It will allow illegal dxil op generated for release build. Then validation should catch those illegal dxil ops if they're not optimized in SimplifyDxilCall. Fixes microsoft#6410
tools/clang/test/CodeGenDXIL/hlsl/types/intrinsic_call_with_all_literal_args.hlsl
Outdated
Show resolved
Hide resolved
@llvm-beanz - can you have a look at this please? This is the more long-term solution to the issue we had with the 2403 release. |
The description is no longer accurate as we're not moving it into an active DXASSERT |
Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per this comment: #6410 (comment) This revert should not "fix" #6410. I think the description and comments should be updated to reflect the removal of the assert as well.
Looks good, though I think they shouldn't be considered crashes, since that's a temporary state of affairs that will change once this PR merges. Also these issues don't cover the TODO comments in the test ( Here was the code: |
To clarify as we discussed in triage this morning. Once this change goes in the issues described originally as crashes in #6566 & #6565, revert to the pre-existing behavior of producing invalid DXIL that fails validation with a validator error. Both issues are closed as per @damyanp's comment:
|
Created #6567 to track the fp special value issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some changes to commments really.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This change removes the IsOverloadLegal check in OP::GetOpFunc.
It will permit the generation of illegal DXIL operations. Subsequently, the validation should catch these illegal DXIL operations if they are not optimized later in SimplifyDxilCall.
Fixes #6410