brintos

brintos / llvm-project-archived public Read only

0
0
Text · 782 B · 091010e Raw
22 lines · plain
1; RUN: llvm-split -o %t %s -j 3 -mtriple amdgcn-amd-amdhsa -amdgpu-module-splitting-max-depth=0 -amdgpu-module-splitting-large-threshold=1.2 -amdgpu-module-splitting-merge-threshold=0.52; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 --implicit-check-not=define %s3; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 --implicit-check-not=define %s4 5; Only 2 out of 3 partitions are created, check the external global is preserved in the first partition.6 7; CHECK0: @foobar = linkonce_odr global i64 528; CHECK0: define amdgpu_kernel void @B9 10; CHECK1-NOT: @foobar = linkonce_odr global i64 5211; CHECK1: define amdgpu_kernel void @A12 13@foobar = linkonce_odr global i64 5214 15define amdgpu_kernel void @A() {16  ret void17}18 19define amdgpu_kernel void @B() {20  ret void21}22