[llvm] [SPIR-V] Fix OpDecorate emission after vreg def. (PR #114426)
Vyacheslav Levytskyy via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 11:40:19 PDT 2024
================
@@ -0,0 +1,15 @@
+; RUN: %if spirv-tools %{ llc -O0 -verify-machineinstrs -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
+; This test checks the OpDecorate MIR is generated after the associated
+; vreg definition in the case of an array size declared through this lowering.
+
+define spir_func i32 @foo(ptr addrspace(4) %Buf, ptr addrspace(4) %Item) {
----------------
VyacheslavLevytskyy wrote:
Maybe remove args as not used?
https://github.com/llvm/llvm-project/pull/114426
More information about the llvm-commits
mailing list