[llvm] Fix failing tests after #86242 (PR #86572)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 25 13:12:24 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-directx

Author: Chris B (llvm-beanz)

<details>
<summary>Changes</summary>

PR #<!-- -->86242 introduced a copy-paste error that caused some tests to fail by mapping the wrong pass name to a pass. This resolves the issue and fixes the failing tests.

---
Full diff: https://github.com/llvm/llvm-project/pull/86572.diff


1 Files Affected:

- (modified) llvm/lib/Target/DirectX/DirectXPassRegistry.def (+1-1) 


``````````diff
diff --git a/llvm/lib/Target/DirectX/DirectXPassRegistry.def b/llvm/lib/Target/DirectX/DirectXPassRegistry.def
index bbf0c254bb697f..1b326d020d5114 100644
--- a/llvm/lib/Target/DirectX/DirectXPassRegistry.def
+++ b/llvm/lib/Target/DirectX/DirectXPassRegistry.def
@@ -24,6 +24,6 @@ MODULE_ANALYSIS("dxil-resource", DXILResourceAnalysis())
 #define MODULE_PASS(NAME, CREATE_PASS)
 #endif
 // TODO: rename to print<foo> after NPM switch
-MODULE_PASS("print-dx-shader-flags", DXILResourcePrinterPass(dbgs()))
+MODULE_PASS("print-dx-shader-flags", dxil::ShaderFlagsAnalysisPrinter(dbgs()))
 MODULE_PASS("print-dxil-resource", DXILResourcePrinterPass(dbgs()))
 #undef MODULE_PASS

``````````

</details>


https://github.com/llvm/llvm-project/pull/86572


More information about the llvm-commits mailing list