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

Simple float4x4 passthrough function fails to compile with optimizations disabled #5409

Closed
ppenenko opened this issue Jul 11, 2023 · 1 comment
Labels
bug Bug, regression, crash dxil

Comments

@ppenenko
Copy link

Description

I was investigating some validation issues in our shaders and compiled them with -Zi -O0 in an attempt to track down the offending lines of code. However, -O0 triggers additional validation issues on trivial code like this snippet. -O1 makes the issue go away.

https://godbolt.org/z/8czEq7711

Steps to Reproduce

export float4x4 mat_passthru(float4x4 mat)
{
    return mat;
}

compiled with -T lib_6_7 -O0

Actual Behavior
error: Instruction does not dominate all uses!

Environment

  • DXC version: 1.7.2207
  • Host Operating System: Win 10
@ppenenko ppenenko added bug Bug, regression, crash needs-triage Awaiting triage labels Jul 11, 2023
@llvm-beanz llvm-beanz added dxil and removed needs-triage Awaiting triage labels Jul 17, 2023
@llvm-beanz llvm-beanz moved this to Done in HLSL Triage Jul 17, 2023
@damyanp
Copy link
Member

damyanp commented Oct 8, 2024

This no longer repros in recent DXC. https://godbolt.org/z/PYMxPPbo4

@damyanp damyanp closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash dxil
Projects
Archived in project
Development

No branches or pull requests

3 participants