This is an archive of the discontinued LLVM Phabricator instance.

Change materializeFrameBaseRegister() to return register
ClosedPublic

Authored by rampitec on Jan 22 2021, 3:14 PM.

Details

Summary

The only caller of this function is in the LocalStackSlotAllocation
and it creates base register of class returned by the target's
getPointerRegClass(). AMDGPU wants to use a different reg class
here so let materializeFrameBaseRegister to just create and return
whatever it wants.

Diff Detail

Event Timeline

rampitec created this revision.Jan 22 2021, 3:14 PM
rampitec requested review of this revision.Jan 22 2021, 3:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 22 2021, 3:14 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm accepted this revision.Jan 22 2021, 3:33 PM
This revision is now accepted and ready to land.Jan 22 2021, 3:33 PM
This revision was automatically updated to reflect the committed changes.
foad added inline comments.
llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
417

@jnspaulsson points out that this line should probably have been removed.

Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2022, 3:29 AM
Herald added a subscriber: hsmhsm. · View Herald Transcript
arsenm added inline comments.Apr 20 2022, 6:31 AM
llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
417