[PATCH] D65303: [BPI] Adjust the probability for floating point unordered comparison

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 15:49:56 PDT 2019


Carrot created this revision.
Carrot added reviewers: ebrevnov, bkramer.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D65303

Files:
  lib/Analysis/BranchProbabilityInfo.cpp
  test/Analysis/BranchProbabilityInfo/fcmp.ll
  test/CodeGen/SystemZ/call-05.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65303.211842.patch
Type: text/x-patch
Size: 3659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190725/b4641776/attachment.bin>


More information about the llvm-commits mailing list