This is an archive of the discontinued LLVM Phabricator instance.

Add setBlockFreq interface to BlockFrequencyInfo, BlockFrequencyInfoImplBase, and BlockFrequencyInfoImpl.
AbandonedPublic

Authored by congh on Jul 10 2015, 11:26 AM.

Details

Summary

This patch make it possible to directly change the block frequency through BFI instead of updating block frequencies for the whole function (which is relatively expensive). This is useful when there are small local frequency changes and the up-to-date BFI is needed soon.

Diff Detail

Event Timeline

congh updated this revision to Diff 29463.Jul 10 2015, 11:26 AM
congh retitled this revision from to Add setBlockFreq interface to BlockFrequencyInfo, BlockFrequencyInfoImplBase, and BlockFrequencyInfoImpl..
congh updated this object.
congh added reviewers: dexonsmith, davidxl.
congh added subscribers: llvm-commits, davidxl.
congh updated this revision to Diff 29493.Jul 10 2015, 2:01 PM

Create new entry for newly added basic block in BlockFrequencyInfoImpl.

congh abandoned this revision.Sep 1 2015, 2:54 PM