[llvm] [SPIRV] Add legalization pass for zero-size arrays (PR #172367)

Marcos Maronas via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 16 02:13:04 PST 2025


================
@@ -0,0 +1,16 @@
+; RUN: opt -S -passes=spirv-legalize-zero-size-arrays -mtriple=spirv64-unknown-unknown < %s | FileCheck %s
+
+; Test that insertvalue of zero-size array is removed
----------------
maarquitos14 wrote:

```suggestion
; Test that insertvalue of zero-size array is removed.
```

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


More information about the llvm-commits mailing list