* Revert "Fix MSVC "not all control paths return a value" warning. NFC."
Dep to revert c9b6e01b2e
* Revert "[AMDGPU] Graph-based Module Splitting Rewrite (#104763)"
Breaks tests.
46 lines
1.1 KiB
LLVM
46 lines
1.1 KiB
LLVM
; RUN: llvm-split -o %t %s -j 2 -mtriple amdgcn-amd-amdhsa
|
|
; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
|
|
; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
|
|
|
|
; 3 kernels:
|
|
; - A calls nothing
|
|
; - B calls @PerryThePlatypus
|
|
; - C calls @Perry, an alias of @PerryThePlatypus
|
|
;
|
|
; We should see through the alias and put B/C in the same
|
|
; partition.
|
|
;
|
|
; Additionally, @PerryThePlatypus gets externalized as
|
|
; the alias counts as taking its address.
|
|
|
|
; CHECK0-NOT: define
|
|
; CHECK0: @Perry = internal alias ptr (), ptr @PerryThePlatypus
|
|
; CHECK0: define hidden void @PerryThePlatypus()
|
|
; CHECK0: define amdgpu_kernel void @B
|
|
; CHECK0: define amdgpu_kernel void @C
|
|
; CHECK0-NOT: define
|
|
|
|
; CHECK1-NOT: define
|
|
; CHECK1: define amdgpu_kernel void @A
|
|
; CHECK1-NOT: define
|
|
|
|
@Perry = internal alias ptr(), ptr @PerryThePlatypus
|
|
|
|
define internal void @PerryThePlatypus() {
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @A() {
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @B() {
|
|
call void @PerryThePlatypus()
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @C() {
|
|
call void @Perry()
|
|
ret void
|
|
}
|