aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ProfileDataLoader.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-10-29Remove code to saturate profile counts.Bob Wilson1-8/+1
We may need to change the way profile counter values are stored, but saturation is the wrong thing to do. Just remove it for now. Patch by Alastair Murray! llvm-svn: 166938
2012-08-31Clean up ProfileDataLoader a bit.Benjamin Kramer1-43/+19
- Overloading operator<< for raw_ostream and pointers is dangerous, it alters the behavior of code that includes the header. - Remove unused ID. - Use LLVM's byte swapping helpers instead of a hand-coded. - Make ReadProfilingData work directly on a pointer. No functionality change. llvm-svn: 162992
2012-08-31Cleanups due to feedback. No functionality change. Patch by Alistair.Bill Wendling1-34/+34
llvm-svn: 162979
2012-08-28Profile: set branch weight metadata with data generated from profiling.Manman Ren1-0/+186
This patch implements ProfileDataLoader which loads profile data generated by -insert-edge-profiling and updates branch weight metadata accordingly. Patch by Alastair Murray. llvm-svn: 162799