[DxilOp] Allow generation of illegal DXIL operations.#6543
[DxilOp] Allow generation of illegal DXIL operations.#6543python3kgae merged 5 commits intomicrosoft:mainfrom
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. |
pow2clk
left a comment
There was a problem hiding this comment.
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. |
pow2clk
left a comment
There was a problem hiding this comment.
Just some changes to commments really.
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