[BranchProbability] move options for 'likely' and 'unlikely'
authorSanjay Patel <spatel@rotateright.com>
Sat, 20 Mar 2021 18:45:56 +0000 (14:45 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sat, 20 Mar 2021 18:46:46 +0000 (14:46 -0400)
commitee8b53815ddf6f6f94ade0068903cd5ae843fafa
treeb7d292fd5477f09dba0c9c4f61fa1a0ad0071562
parent47fdaa32f97d29ade52232ad8cb16227d195de6a
[BranchProbability] move options for 'likely' and 'unlikely'

This makes the settings available for use in other passes by housing
them within the Support lib, but NFC otherwise.

See D98898 for the proposed usage in SimplifyCFG
(where this change was originally included).

Differential Revision: https://reviews.llvm.org/D98945
clang/lib/CodeGen/CodeGenFunction.cpp
llvm/include/llvm/Support/BranchProbability.h
llvm/include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
llvm/lib/Support/BranchProbability.cpp
llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp