[llvm] [AMDGPU][SplitModule] Allow non-kernels to be treated as roots (PR #95902)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 00:40:28 PDT 2024


================
@@ -0,0 +1,50 @@
+; RUN: llvm-split -o %t %s -j 3 -mtriple amdgcn-amd-amdhsa
+; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
+; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
+; RUN: llvm-dis -o - %t2 | FileCheck --check-prefix=CHECK2 %s
+
+; 3 functions with each their own dependencies should go into 3
+; distinct partitions.
+
+; CHECK0-NOT: define
----------------
Pierre-vh wrote:

To check we don't have more definitions than what we want

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


More information about the llvm-commits mailing list