[clang] [llvm] [SPIRV] Constants should always live in the entry block (PR #234291)
Marcos Maronas via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 26 08:02:38 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
----------------
maarquitos14 wrote:
Interesting, I didn't know about this. Thanks for explaining @AlexVlx.
https://github.com/llvm/llvm-project/pull/234291
More information about the cfe-commits
mailing list