diff options
author | Hans Wennborg <hans@hanshq.net> | 2018-08-29 12:21:32 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2018-08-29 12:21:32 +0000 |
commit | 2c390c54f64c6303aa4f7151cda5c466ae3ccc23 (patch) | |
tree | fa9fa288532951db4818a6c0d44a23334a8d624a /llvm/lib/Transforms/Utils/GuardUtils.cpp | |
parent | c03b9b8854399aa5234fdee1eb3838ce4adccbaf (diff) | |
download | llvm-2c390c54f64c6303aa4f7151cda5c466ae3ccc23.zip llvm-2c390c54f64c6303aa4f7151cda5c466ae3ccc23.tar.gz llvm-2c390c54f64c6303aa4f7151cda5c466ae3ccc23.tar.bz2 |
Revert r340921 "[NFC] Unify guards detection"
This broke the build, see e.g.
http://lab.llvm.org:8011/builders/clang-cmake-armv8-lnt/builds/4626/
http://lab.llvm.org:8011/builders/clang-ppc64be-linux-lnt/builds/18647/
http://lab.llvm.org:8011/builders/clang-cmake-x86_64-avx2-linux/builds/5856/
http://lab.llvm.org:8011/builders/lld-x86_64-freebsd/builds/22800/
> We have multiple places in code where we try to identify whether or not
> some instruction is a guard. This patch factors out this logic into a separate
> utility function which works uniformly in all places.
>
> Differential Revision: https://reviews.llvm.org/D51152
> Reviewed By: fedor.sergeev
llvm-svn: 340923
Diffstat (limited to 'llvm/lib/Transforms/Utils/GuardUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/GuardUtils.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Utils/GuardUtils.cpp b/llvm/lib/Transforms/Utils/GuardUtils.cpp index 5a9a9df..08de0a4 100644 --- a/llvm/lib/Transforms/Utils/GuardUtils.cpp +++ b/llvm/lib/Transforms/Utils/GuardUtils.cpp @@ -15,7 +15,6 @@ #include "llvm/IR/Instructions.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/MDBuilder.h" -#include "llvm/IR/PatternMatch.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" using namespace llvm; @@ -25,11 +24,6 @@ static cl::opt<uint32_t> PredicatePassBranchWeight( cl::desc("The probability of a guard failing is assumed to be the " "reciprocal of this value (default = 1 << 20)")); -bool llvm::isGuard(const User *U) { - using namespace llvm::PatternMatch; - return match(U, m_Intrinsic<Intrinsic::experimental_guard>()); -} - void llvm::makeGuardControlFlowExplicit(Function *DeoptIntrinsic, CallInst *Guard) { OperandBundleDef DeoptOB(*Guard->getOperandBundle(LLVMContext::OB_deopt)); |