mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-23 04:52:54 +02:00
be274cfd1b
Remove a useless SwitchSection which also causes compilation failure when IR contains comdat. The SwitchSection is useless because the current section is already correct text section for the function therefore no need to switch. It causes compilation failure for comdat because functions with comdat has specific text section, not the default .text section. Since HIP uses comdat, this bug caused failures for HIP. Differential Revision: https://reviews.llvm.org/D46770 llvm-svn: 332137
20 lines
407 B
LLVM
20 lines
407 B
LLVM
; RUN: llc -mtriple amdgcn-amd-amdhsa -filetype=obj <%s \
|
|
; RUN: | llvm-readobj -symbols - | FileCheck %s
|
|
|
|
; CHECK: Name: func1
|
|
; CHECK: Section: .text.func1
|
|
|
|
; CHECK: Name: func2
|
|
; CHECK: Section: .text.func2
|
|
|
|
$func1 = comdat any
|
|
$func2 = comdat any
|
|
|
|
define amdgpu_kernel void @func1() local_unnamed_addr comdat {
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @func2() local_unnamed_addr comdat {
|
|
ret void
|
|
}
|