[AMDGPU] Fix high occupancy calculation and print it
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 31 Jul 2019 01:07:10 +0000 (01:07 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 31 Jul 2019 01:07:10 +0000 (01:07 +0000)
commit2594fa85932a68a904cdb5445dbf7aa231c66e9b
tree150d98a961cb7fcd8b4976c046a3b9f2d80aeaa7
parent62a87287506cfb1a3d31b4a2751606ee1a4ce1fc
[AMDGPU] Fix high occupancy calculation and print it

We had couple places which still return 10 as a maximum
occupancy. Fixed.

Also print comment about occupancy as compiler see it.

Differential Revision: https://reviews.llvm.org/D65423

llvm-svn: 367381
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
llvm/lib/Target/AMDGPU/SIProgramInfo.h
llvm/test/CodeGen/AMDGPU/hsa-metadata-kernel-code-props-v3.ll
llvm/test/CodeGen/AMDGPU/nsa-reassign.ll
llvm/test/CodeGen/AMDGPU/occupancy-levels.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/wave32.ll