diff options
author | Cong Hou <congh@google.com> | 2015-10-26 18:00:17 +0000 |
---|---|---|
committer | Cong Hou <congh@google.com> | 2015-10-26 18:00:17 +0000 |
commit | fff8ccf5792b8cec4483c88e87d8d98c72b76633 (patch) | |
tree | dd000df23b931fe4e7ad91a1cca6b052e43e88b4 /llvm/lib/Transforms/Utils/LoopVersioning.cpp | |
parent | 57f8837adad4859e3ea12fdebe792819b9cf3848 (diff) | |
download | llvm-fff8ccf5792b8cec4483c88e87d8d98c72b76633.zip llvm-fff8ccf5792b8cec4483c88e87d8d98c72b76633.tar.gz llvm-fff8ccf5792b8cec4483c88e87d8d98c72b76633.tar.bz2 |
Check the case that the numerator and denominator are both zeros when getting edge probabilities in BPI and return 100% in this case.
This issue is triggered in PGO mode when bootstrapping LLVM. It seems that it is not guaranteed that edge weights are always greater than zero which are read from profile data.
llvm-svn: 251317
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
0 files changed, 0 insertions, 0 deletions