Do not create negative edge weights in ProfileEstimator.
authorAndreas Neustifter <astifter-llvm@gmx.at>
Thu, 3 Dec 2009 12:41:14 +0000 (12:41 +0000)
committerAndreas Neustifter <astifter-llvm@gmx.at>
Thu, 3 Dec 2009 12:41:14 +0000 (12:41 +0000)
commit1640f7e033116256813a301dd8f581e7f9272a3f
tree372f806cad91d20badcf1fa167d11dc6a2f0d29b
parenta6d5e40e25e6b4fc856fa5cd10a59b8fdf51d9a7
Do not create negative edge weights in ProfileEstimator.
Use integer values for weights to prevent rounding errors.
Make ProfileEstimator more robust in general CFGs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90449 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ProfileEstimatorPass.cpp