aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContextImpl.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-04-22 06:51:37 +0000
committerVedant Kumar <vsk@apple.com>2016-04-22 06:51:37 +0000
commit6013f45f920f8b208e945007697a5601f6f956fc (patch)
treefe324d8bb253f369bf9294cbc5c0b13e6ba99570 /llvm/lib/IR/LLVMContextImpl.cpp
parentae720dbbb61f8dcfe8bf44ec01160183c07cf40e (diff)
downloadllvm-6013f45f920f8b208e945007697a5601f6f956fc.zip
llvm-6013f45f920f8b208e945007697a5601f6f956fc.tar.gz
llvm-6013f45f920f8b208e945007697a5601f6f956fc.tar.bz2
Revert "Initial implementation of optimization bisect support."
This reverts commit r267022, due to an ASan failure: http://lab.llvm.org:8080/green/job/clang-stage2-cmake-RgSan_check/1549 llvm-svn: 267115
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp
index d27fcb1..d5d9038 100644
--- a/llvm/lib/IR/LLVMContextImpl.cpp
+++ b/llvm/lib/IR/LLVMContextImpl.cpp
@@ -16,8 +16,6 @@
#include "llvm/IR/Attributes.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/IR/Module.h"
-#include "llvm/IR/OptBisect.h"
-#include "llvm/Support/ManagedStatic.h"
#include <algorithm>
using namespace llvm;
@@ -234,19 +232,3 @@ void GetElementPtrConstantExpr::anchor() { }
void CompareConstantExpr::anchor() { }
-/// Singleton instance of the OptBisect class.
-///
-/// This singleton is accessed via the LLVMContext::getOptBisect() function. It
-/// provides a mechanism to disable passes and individual optimizations at
-/// compile time based on a command line option (-opt-bisect-limit) in order to
-/// perform a bisecting search for optimization-related problems.
-///
-/// Even if multiple LLVMContext objects are created, they will all return the
-/// same instance of OptBisect in order to provide a single bisect count. Any
-/// code that uses the OptBisect object should be serialized when bisection is
-/// enabled in order to enable a consistent bisect count.
-static ManagedStatic<OptBisect> OptBisector;
-
-OptBisect &LLVMContextImpl::getOptBisect() {
- return *OptBisector;
-}