[llvm] [DirectX] Eliminate resource global variables from module (PR #114105)
Greg Roth via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 10:29:25 PST 2024
================
@@ -0,0 +1,93 @@
+; RUN: opt -S -passes='early-cse<memssa>' %s -o %t
+; RUN: FileCheck --check-prefixes=CSE,CHECK %s < %t
+; finish compiling to verify that dxil-op-lower removes the globals entirely
+; RUN: llc -mtriple=dxil-pc-shadermodel6.0-compute --filetype=asm -o - %t | FileCheck --check-prefixes=LLC,CHECK %s
----------------
pow2clk wrote:
Yes, the difference is whether the handle is created or created and annotated. We have separate paths for them, so even though they call the same utility function, I thought it better to test both paths.
https://github.com/llvm/llvm-project/pull/114105
More information about the llvm-commits
mailing list