This is an archive of the discontinued LLVM Phabricator instance.

[NFC][ScheduleDAG] Code cleanup for ScheduleDAGRRList.cpp
AbandonedPublic

Authored by psamolysov on Sep 6 2022, 6:30 AM.

Details

Summary

Code has been formatted in accordance with the code style. Some
variables and function members were renamed as well as some uses
of std::make_pair and the std::pair's first/second members were
replaced with using of the vector's emplace_back along with structure
bindings from C++17.

Diff Detail

Event Timeline

psamolysov created this revision.Sep 6 2022, 6:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 6 2022, 6:30 AM
psamolysov requested review of this revision.Sep 6 2022, 6:30 AM
fhahn added a comment.Sep 9 2022, 3:52 AM

I think historically we avoid reformatting whole files, as this makes git blame more cumbersome. It would probably be better to start with a patch that just uses the new C++17 features.

psamolysov abandoned this revision.Sep 12 2022, 8:12 AM

@fhahn Thank you very much for the suggestion. I've extracted some making sense changes from the patch (using Register instead of unsigned, some C++17-fication, and using references in iterating over the collections in the foreach loops) and committed them in LLVM w/o review because those patches are very small and NFC. This review can be marked as abandoned.