This is an archive of the discontinued LLVM Phabricator instance.

Allow placing the function entry in .text.split.
DraftPublic

Authored by rahmanl on Jul 26 2022, 3:29 PM.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
tmsriram
Summary

A function may be considered hot by basic block sections even though the entry might not be.
If no profile exists for the entry block, then it might make sense to place it in the cold section.

Diff Detail

Event Timeline

rahmanl created this revision.Jul 26 2022, 3:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2022, 3:29 PM
rahmanl updated this revision to Diff 447856.Jul 26 2022, 3:34 PM

clang-format

Looks good otherwise, please update the description to reflect performance improvements from doing this.

llvm/lib/CodeGen/CodeGenPrepare.cpp
263

Change k to block