This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Attach ORC info to instructions in CFG
ClosedPublic

Authored by maksfb on Jul 12 2023, 11:15 PM.

Details

Summary

Propagate Linux Kernel ORC information read from the file to the whole
function CFG once the graph has been built. We have a choice to either
attach ORC state annotation to every instruction, or to the first
instruction in the basic block to conserve processing memory. I chose to
attach to every instruction under --print-orc option which is currently
on by default.

Depends on D155153

Diff Detail

Event Timeline

maksfb created this revision.Jul 12 2023, 11:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2023, 11:15 PM
maksfb requested review of this revision.Jul 12 2023, 11:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2023, 11:15 PM
Amir accepted this revision.Jul 13 2023, 10:57 AM
Amir added inline comments.
bolt/lib/Rewrite/LinuxKernelRewriter.cpp
533
This revision is now accepted and ready to land.Jul 13 2023, 10:57 AM
maksfb marked an inline comment as done.Jul 13 2023, 11:12 AM
maksfb updated this revision to Diff 540125.Jul 13 2023, 11:12 AM

Fix comment.

This revision was landed with ongoing or failed builds.Jul 13 2023, 11:13 AM
This revision was automatically updated to reflect the committed changes.