[llvm] [DirectX] Add GlobalDCE pass after finalize linkage pass in DirectX backend (PR #151071)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 6 14:18:07 PDT 2025


================
@@ -1,4 +1,4 @@
-; RUN: llc %s -mtriple=dxil-pc-shadermodel6.3-library --filetype=asm -o - | FileCheck %s
+; RUN: opt -S -passes='dxil-data-scalarization,dxil-flatten-arrays' -mtriple=dxil-unknown-shadermodel6.5-compute %s | FileCheck %s
----------------
bogner wrote:

Would it be better to modify the linkage of the globals in this test to be external rather than changing how we test this?

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


More information about the llvm-commits mailing list