This is an archive of the discontinued LLVM Phabricator instance.

[PGO] Text format profile reader needs to clear the value profile
ClosedPublic

Authored by xur on Feb 28 2017, 3:39 PM.

Details

Summary

Reset the ValueData for each function to avoid using the ones in
the previous function.

Event Timeline

xur created this revision.Feb 28 2017, 3:39 PM
davidxl added inline comments.Feb 28 2017, 3:49 PM
lib/ProfileData/InstrProfReader.cpp
247

Add a Clear() member function to do counter reset for both edge and value counts.

xur updated this revision to Diff 90513.Mar 3 2017, 11:21 AM

Integrated David's review comments.

davidxl accepted this revision.Mar 3 2017, 11:25 AM

lgtm

This revision is now accepted and ready to land.Mar 3 2017, 11:25 AM
xur closed this revision.Mar 3 2017, 2:08 PM