[PATCH] D60903: [SampleFDO] Never set profile entry count to 0

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 19 10:06:47 PDT 2019


davidxl added a comment.

Looked at the Instruction::updateProfWeight() --- the part that update branch_weights seems bogus  -- there is need need to scale branch weight at all.

VP data needs to be scaled of course, but if 'S' or 'T' is zero, just zero them out.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60903/new/

https://reviews.llvm.org/D60903





More information about the llvm-commits mailing list