Issue |
145437
|
Summary |
[DirectX] dx.rootsignatures metadata is left around, causing validation failure
|
Labels |
backend:DirectX
|
Assignees |
|
Reporter |
bogner
|
Currently, the `dx.rootsignatures` metadata is never removed. This causes us to emit it into the DXIL module, which then fails validation (ie, `dxv`) because DXIL doesn't have such metadata.
To fix this, we should make the `DXILPrepare` pass depend on root and preserve root signature analysis to ensure that the analysis runs early enough, and then have that same pass do something to the effect of:
```c++
if (NamedMDNode *RootSignature = M.getNamedMetadata("dx.rootsignatures"))
RootSignature->eraseFromParent();
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs