diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-03-20 14:45:56 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-03-20 14:46:46 -0400 |
commit | ee8b53815ddf6f6f94ade0068903cd5ae843fafa (patch) | |
tree | b7d292fd5477f09dba0c9c4f61fa1a0ad0071562 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 47fdaa32f97d29ade52232ad8cb16227d195de6a (diff) | |
download | llvm-ee8b53815ddf6f6f94ade0068903cd5ae843fafa.zip llvm-ee8b53815ddf6f6f94ade0068903cd5ae843fafa.tar.gz llvm-ee8b53815ddf6f6f94ade0068903cd5ae843fafa.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index a00ae74..18927b4 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -42,8 +42,8 @@ #include "llvm/IR/Intrinsics.h" #include "llvm/IR/MDBuilder.h" #include "llvm/IR/Operator.h" +#include "llvm/Support/BranchProbability.h" #include "llvm/Support/CRC.h" -#include "llvm/Transforms/Scalar/LowerExpectIntrinsic.h" #include "llvm/Transforms/Utils/PromoteMemToReg.h" using namespace clang; using namespace CodeGen; |