[BPI] Adjust the probability for floating point unordered comparison
authorGuozhi Wei <carrot@google.com>
Tue, 10 Sep 2019 17:25:11 +0000 (17:25 +0000)
committerGuozhi Wei <carrot@google.com>
Tue, 10 Sep 2019 17:25:11 +0000 (17:25 +0000)
commitb329e0728b3eda7a1c754931e5c174b2b7ae51b3
treef133e3b1565aa2b958521dfc10042ec3f5bfce2f
parente1895aba3da01df442253bf048e38371377db15e
[BPI] Adjust the probability for floating point unordered comparison

Since NaN is very rare in normal programs, so the probability for floating point unordered comparison should be extremely small. Current probability is 3/8, it is too large, this patch changes it to a tiny number.

Differential Revision: https://reviews.llvm.org/D65303

llvm-svn: 371541
llvm/lib/Analysis/BranchProbabilityInfo.cpp
llvm/test/Analysis/BranchProbabilityInfo/fcmp.ll [new file with mode: 0644]
llvm/test/CodeGen/SystemZ/call-05.ll