This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] make callsShareTOCBase be a member function. NFC
AbandonedPublic

Authored by shchenz on May 23 2022, 7:19 AM.

Details

Reviewers
umesh.kalappa0
nemanjai
Group Reviewers
Restricted Project
Summary

We can reuse callsShareTOCBase() in some other file to avoid unnecessary nop after the call. The new user of this refactored function will be posted later.

Diff Detail

Event Timeline

shchenz created this revision.May 23 2022, 7:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2022, 7:19 AM
shchenz requested review of this revision.May 23 2022, 7:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2022, 7:19 AM

This seems like a rather invasive refactoring for removing a nop at -O0. I am not particularly in favour of this. Not only is a nop essentially trivial when it comes to performance (and even code size), but this is restricted to unoptimized code gen for which it isn't really reasonable to expect performant code.

shchenz abandoned this revision.Jun 5 2022, 7:56 PM

We won't do this in fast-isel like @nemanjai points out