[PATCH] D29911: AMDGPU : Recalculate SGPRs when trap handler is supported
Tony Tye via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 15 15:16:51 PDT 2018
t-tye accepted this revision.
t-tye added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp:379
+ if (Features.test(FeatureTrapHandler))
+ MaxNumSGPRs -= std::min(MaxNumSGPRs, (unsigned)TRAP_NUM_SGPRS) ;
+ MaxNumSGPRs = alignDown(MaxNumSGPRs, getSGPRAllocGranule(Features));
----------------
Remove space before ;
https://reviews.llvm.org/D29911
More information about the llvm-commits
mailing list