[clang] [llvm] [SPIRV] Constants should always live in the entry block (PR #234291)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 23 03:04:05 PDT 2026


================
@@ -6,9 +6,9 @@
 define void @test_all_memory_barrier_with_group_sync() #0 {
 entry:
   ; CHECK: %[[#TY:]] = OpTypeInt 32 0
+  ; CHECK-DAG: %[[#MEM_SEM:]] = OpConstant %[[#TY]] 2376
----------------
aobolensk wrote:

Thanks! I forgot about that thing. Using {$} at EOL would be an overkill for this case. Let's leave as is

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


More information about the cfe-commits mailing list