[llvm] Adjust bit cast instruction filter for DXIL Prepare pass (PR #142678)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 16:51:09 PDT 2025
================
@@ -0,0 +1,39 @@
+; RUN: opt -S --dxil-prepare %s | FileCheck %s
+
+; Test that global arrays do not get a bitcast instruction
+; after the dxil-prepare pass.
+
+target triple = "dxilv1.2-unknown-shadermodel6.2-compute"
+
+ at inputTile.1dim = local_unnamed_addr addrspace(3) global [3 x float] zeroinitializer, align 2
+
+define float @testload() local_unnamed_addr {
+ ; NOTE: this would be "bitcast ptr addrspace(3)..." before the change that introduced this test,
+ ; after the dxil-prepare pass is run
+ ; CHECK: load float, ptr addrspace(3) @inputTile.1dim, align 2
----------------
farzonl wrote:
Add check labels and since you are doing that mayve theese should all be `CHECK-NEXT`?
https://github.com/llvm/llvm-project/pull/142678
More information about the llvm-commits
mailing list