[llvm] AMDGPU: Fix assert when multi operands to update after folding imm (PR #148205)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 03:02:34 PDT 2025
================
@@ -0,0 +1,55 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
+# RUN: llc -mtriple=amdgcn-amd-hsa -mcpu=gfx1031 -run-pass=si-fold-operands -o - %s | FileCheck %s
+--- |
+ @global = external addrspace(3) global i32
+
+ define void @snork() {
+ bb:
+ br label %bb3
+
+ bb3:
+ br label %bb5
+
+ bb5:
+ ret void
+ }
+...
+---
+name: snork
+body: |
+ ; CHECK-LABEL: name: snork
+ ; CHECK: bb.0.bb:
----------------
jayfoad wrote:
The final suffix on the label name here refers back to the IR name for the block. So if you remove it (and the same for the other labels below) then you can reduce the IR function definition to just `ret void`:
```suggestion
; CHECK: bb.0:
```
https://github.com/llvm/llvm-project/pull/148205
More information about the llvm-commits
mailing list