[PATCH] D23687: AMDGPU/SI: Use a better method for determining the largest pressure sets
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 18 11:50:43 PDT 2016
tstellarAMD created this revision.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
Herald added subscribers: kzhuravl, arsenm, MatzeB.
There are a few different sgpr pressure sets, but we only care about
the one which covers all of the sgprs. We were using hard-coded
register pressure set names to determine the reg set id for the
biggest sgpr set. However, we were using the wrong name, and this
method is pretty fragile, since the reg pressure set names may
change.
The new method just looks for the pressure set that contains the most
reg units and sets that set as our SGPR pressure set. We've also
adopted the same technique for determining our VGPR pressure set.
https://reviews.llvm.org/D23687
Files:
lib/Target/AMDGPU/SIMachineScheduler.cpp
lib/Target/AMDGPU/SIRegisterInfo.cpp
lib/Target/AMDGPU/SIRegisterInfo.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23687.68585.patch
Type: text/x-patch
Size: 5564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160818/455876fb/attachment.bin>
More information about the llvm-commits
mailing list