Closed
Description
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 small.ll %s -o -
define amdgpu_kernel void @kernel() {
entry:
call void @callee1()
ret void
}
define void @callee1() #0 {
entry:
call void @callee2()
ret void
}
define void @callee2() #0 {
entry:
call void @callee1()
ret void
}
attributes #0 = { noinline }
The crash is because of stack overflow.
evaluateAsRelocatable -> evaluateAsRelocatableImpl -> evaluateAsRelocatableImpl -> evaluateAsRelocatable -> ...