mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
AMDGPU/SI: Fix printing useless info with amdhsa
The comments at the bottom would all report 0 if amdhsa was used. llvm-svn: 245135
This commit is contained in:
parent
084da36b61
commit
a02881be87
@ -125,8 +125,8 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
const AMDGPUSubtarget &STM = MF.getSubtarget<AMDGPUSubtarget>();
|
||||
SIProgramInfo KernelInfo;
|
||||
if (STM.getGeneration() >= AMDGPUSubtarget::SOUTHERN_ISLANDS) {
|
||||
getSIProgramInfo(KernelInfo, MF);
|
||||
if (!STM.isAmdHsaOS()) {
|
||||
getSIProgramInfo(KernelInfo, MF);
|
||||
EmitProgramInfoSI(MF, KernelInfo);
|
||||
}
|
||||
// Emit directives
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs -asm-verbose < %s | FileCheck -check-prefix=SI %s
|
||||
; RUN: llc -march=amdgcn -verify-machineinstrs -asm-verbose < %s | FileCheck -check-prefix=SI %s
|
||||
; RUN: llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa -verify-machineinstrs -asm-verbose < %s | FileCheck -check-prefix=SI %s
|
||||
|
||||
declare i32 @llvm.SI.tid() nounwind readnone
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user