Hiroshi Yamauchi
3d6f53018f
[PGO] Include the mem ops into the function hash.
...
To avoid hash collisions when the only difference is in mem ops.
2020-07-30 09:26:20 -07:00
Hiroshi Yamauchi
ae7589e1f1
Revert "[PGO] Include the mem ops into the function hash."
...
This reverts commit 120e66b3418b37b95fc1dbbb23e296a602a24fa8.
Due to a buildbot failure.
2020-07-29 15:04:57 -07:00
Hiroshi Yamauchi
120e66b341
[PGO] Include the mem ops into the function hash.
...
To avoid hash collisions when the only difference is in mem ops.
Differential Revision: https://reviews.llvm.org/D84782
2020-07-29 13:59:40 -07:00
Rong Xu
1dd39b1133
[PGO] Fix incorrect function entry count
...
Function entry count might be zero after the profile counts reset and
before reentry to the function.
Zero profile entry count is very bad as the profile count from BFI will
be wrong.
A simple fix is to set the profile entry count to 1 if there are
non-zero profile counts in this function.
Differential Revision: https://reviews.llvm.org/D84378
2020-07-24 17:39:55 -07:00
Rong Xu
dcf1bca0de
Revert "[PGO][InstrProf] Do not promote count if the exit blocks contains ret instruction"
...
This reverts commit 867ef4472d8e57384c929e4f06b74d1ac8883a99.
2020-07-24 17:33:49 -07:00
Rong Xu
867ef4472d
[PGO][InstrProf] Do not promote count if the exit blocks contains ret instruction
...
Forgot including the tests in the commit 6fdc6f6c7d34af60c4.
2020-07-24 17:23:33 -07:00