[llvm] r367355 - [AMDGPU] Print register pressure for agpr and vgpr separately
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 13:45:15 PDT 2019
Author: rampitec
Date: Tue Jul 30 13:45:15 2019
New Revision: 367355
URL: http://llvm.org/viewvc/llvm-project?rev=367355&view=rev
Log:
[AMDGPU] Print register pressure for agpr and vgpr separately
Differential Revision: https://reviews.llvm.org/D65476
Modified:
llvm/trunk/lib/Target/AMDGPU/GCNRegPressure.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/GCNRegPressure.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/GCNRegPressure.cpp?rev=367355&r1=367354&r2=367355&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/GCNRegPressure.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/GCNRegPressure.cpp Tue Jul 30 13:45:15 2019
@@ -183,7 +183,8 @@ bool GCNRegPressure::less(const GCNSubta
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD
void GCNRegPressure::print(raw_ostream &OS, const GCNSubtarget *ST) const {
- OS << "VGPRs: " << getVGPRNum();
+ OS << "VGPRs: " << Value[VGPR32] << ' ';
+ OS << "AGPRs: " << Value[AGPR32];
if (ST) OS << "(O" << ST->getOccupancyWithNumVGPRs(getVGPRNum()) << ')';
OS << ", SGPRs: " << getSGPRNum();
if (ST) OS << "(O" << ST->getOccupancyWithNumSGPRs(getSGPRNum()) << ')';
More information about the llvm-commits
mailing list