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

Chris B via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 25 13:11:55 PDT 2024


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

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.

>From 7a1ae56cf9a2df76277f0a9f4a3b0c48ee0c687b Mon Sep 17 00:00:00 2001
From: Chris Bieneman <chris.bieneman at me.com>
Date: Mon, 25 Mar 2024 15:10:24 -0500
Subject: [PATCH] Fix failing tests after #86242

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.
---
 llvm/lib/Target/DirectX/DirectXPassRegistry.def | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the llvm-commits mailing list