[PGO] Fix a bug in InstProfWriter addRecord
For a new record with weight != 1, only edge profiling counters are scaled, VP data is not properly scaled. This patch refactors the code and fixes the problem. Also added sort by count interface (for follow up patch). llvm-svn: 257143
Loading
Please register or sign in to comment