summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/OptBisect.cpp
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2017-08-31 22:06:09 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2017-08-31 22:06:09 +0000
commit3e561694ad2aa01696a42933a3e8626703b3f137 (patch)
tree5e8318c606510d46bbc03a7f5b7ed0e199510e7c /llvm/lib/IR/OptBisect.cpp
parentfa6434bebb74cb8db67a3835e18ebd3f1f176862 (diff)
downloadbcm5719-llvm-3e561694ad2aa01696a42933a3e8626703b3f137.tar.gz
bcm5719-llvm-3e561694ad2aa01696a42933a3e8626703b3f137.zip
[IR] Missing changes for r312289 (NFC).
llvm-svn: 312290
Diffstat (limited to 'llvm/lib/IR/OptBisect.cpp')
-rw-r--r--llvm/lib/IR/OptBisect.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/llvm/lib/IR/OptBisect.cpp b/llvm/lib/IR/OptBisect.cpp
index f1c70058fac..dc7dcd2e4a9 100644
--- a/llvm/lib/IR/OptBisect.cpp
+++ b/llvm/lib/IR/OptBisect.cpp
@@ -1,4 +1,4 @@
-//===------- llvm/IR/OptBisect/Bisect.cpp - LLVM Bisect support --------===//
+//===- llvm/IR/OptBisect/Bisect.cpp - LLVM Bisect support -----------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -6,31 +6,38 @@
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
-///
+//
/// \file
/// This file implements support for a bisecting optimizations based on a
/// command line option.
-///
+//
//===----------------------------------------------------------------------===//
#include "llvm/IR/OptBisect.h"
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/CallGraphSCCPass.h"
-#include "llvm/Analysis/LazyCallGraph.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/RegionInfo.h"
+#include "llvm/IR/BasicBlock.h"
+#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
+#include <cassert>
+#include <limits>
+#include <string>
using namespace llvm;
static cl::opt<int> OptBisectLimit("opt-bisect-limit", cl::Hidden,
- cl::init(INT_MAX), cl::Optional,
+ cl::init(std::numeric_limits<int>::max()),
+ cl::Optional,
cl::desc("Maximum optimization to perform"));
OptBisect::OptBisect() {
- BisectEnabled = OptBisectLimit != INT_MAX;
+ BisectEnabled = OptBisectLimit != std::numeric_limits<int>::max();
}
static void printPassMessage(const StringRef &Name, int PassNum,
OpenPOWER on IntegriCloud