Page MenuHomePhabricator

[llvm][misexpect] Track provenance of branch weights
Needs ReviewPublic

Authored by paulkirth on Fri, Aug 5, 4:40 PM.

Details

Summary

MisExpect needs to know if a branch weight intrinsic originates from an
llvm.expect intrinsic.

This patch allows us to track that provenance by adding a new
metadata type that can be moved in concert with the existing branch
weights. The new metadata is copied whenever branch weights are copied,
and is removed when new branch weights are added.

Diff Detail

Event Timeline

paulkirth created this revision.Fri, Aug 5, 4:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptFri, Aug 5, 4:40 PM
paulkirth requested review of this revision.Fri, Aug 5, 4:40 PM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript