[llvm] [SPIR-V] Fix environment resolution causing legalization crash (PR #179052)

Dmitry Sidorov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 3 07:17:01 PST 2026


================
@@ -0,0 +1,25 @@
+; RUN: llc -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
+
+; Regression test for https://github.com/llvm/llvm-project/issues/171898
+; When triple is spirv-unknown-unknown and a non-entry-point function using
+; wide vectors (e.g. <8 x i32>) appears before the entry point with
----------------
MrSidims wrote:

Ehhh, how I ended up with this test? Thanks for spotting!

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


More information about the llvm-commits mailing list