This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Be more specific in needsFrameBaseReg
ClosedPublic

Authored by rampitec on Jan 29 2021, 2:40 PM.

Details

Summary

A condition "mayLoadOrStore" is too broad for that function.

Diff Detail

Event Timeline

rampitec created this revision.Jan 29 2021, 2:40 PM
rampitec requested review of this revision.Jan 29 2021, 2:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 29 2021, 2:40 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm added inline comments.Jan 29 2021, 2:42 PM
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
416–417

Move this up and then just exit on isFLATScratch

rampitec added inline comments.Jan 29 2021, 2:45 PM
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
416–417

I would need to call getScratchInstrOffset() twice.

arsenm accepted this revision.Jan 29 2021, 2:46 PM
This revision is now accepted and ready to land.Jan 29 2021, 2:46 PM
This revision was automatically updated to reflect the committed changes.