This is an archive of the discontinued LLVM Phabricator instance.

Add a wrapper function to set branch weights metadata.
ClosedPublic

Authored by eraman on Nov 9 2017, 2:40 PM.

Details

Summary

This wrapper checks if there is at least one non-zero weight before
setting the metadata.

Event Timeline

eraman created this revision.Nov 9 2017, 2:40 PM
davidxl accepted this revision.Nov 9 2017, 2:45 PM

lgtm

This revision is now accepted and ready to land.Nov 9 2017, 2:45 PM
This revision was automatically updated to reflect the committed changes.