The following LLVM-IR using nested aliases crashes the AMDGPU backend during resource assignment. This is caused by an invalid cast between incompatible types. See the godbolt link https://godbolt.org/z/Mrv7a1PrP or below.
target triple = "amdgcn-amd-amdhsa"
@foo_a = alias void (ptr), ptr @foo
@bar_a = alias void (ptr), ptr @foo_a
define void @foo() {
entry:
ret void
}
define void @bad() {
entry:
call void @bar_a(ptr null)
ret void
}
Simply invoking the backend will reproduce the issue.
The following LLVM-IR using nested aliases crashes the AMDGPU backend during resource assignment. This is caused by an invalid cast between incompatible types. See the godbolt link https://godbolt.org/z/Mrv7a1PrP or below.
Simply invoking the backend will reproduce the issue.