It is now very simple and can go right into the header
allowing optimizer to combine callers, such as isVGPRClass
and similar.
It does not need anything from the TRI itself anymore, so
make it static class member along with the callers.
Paths
| Differential D110762
[AMDGPU] move hasAGPRs/hasVGPRs into header ClosedPublic Authored by rampitec on Sep 29 2021, 12:52 PM.
Details
Summary It is now very simple and can go right into the header It does not need anything from the TRI itself anymore, so
Diff Detail
Event TimelineHerald added subscribers: kerbowa, hiraditya, t-tye and 7 others. · View Herald TranscriptSep 29 2021, 12:52 PM This revision is now accepted and ready to land.Sep 29 2021, 7:30 PM Comment Actions For the record, I have measured check-llvm-codegen-amdgpu with a release build, it seems to speedup BE compilation around 5% in average. This revision was landed with ongoing or failed builds.Sep 30 2021, 10:34 AM Closed by commit rG244aa7f7358d: [AMDGPU] move hasAGPRs/hasVGPRs into header (authored by rampitec). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions
That is amazing! +@piotr for awareness. Comment Actions
Again for the record, compiler was built with the clang.
Revision Contents
Diff 376272 llvm/lib/Target/AMDGPU/SIRegisterInfo.h
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
|