[llvm] [llvm][NVPTX] Don't reorder MIs that construct a PTX function call (PR #116522)

Youngsuk Kim via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 13:45:29 PST 2024


================
@@ -0,0 +1,28 @@
+; RUN: llc -O3 -march=nvptx64 -enable-misched %s -o - | FileCheck %s
+
+target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
+target triple = "nvptx64-nvidia-cuda"
+
+define ptx_kernel void @wombat(i32 %arg, i32 %arg1, i32 %arg2) {
+bb:
+  br label %bb3
+
+bb3:                                              ; preds = %bb3, %bb
----------------
JOE1994 wrote:

`llc` aborts when given test with basic block `bb` removed, with the following error:

```
```

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


More information about the llvm-commits mailing list