]> granicus.if.org Git - llvm/commitdiff
[IR] Missing changes for r312289 (NFC).
authorEugene Zelenko <eugene.zelenko@gmail.com>
Thu, 31 Aug 2017 22:06:09 +0000 (22:06 +0000)
committerEugene Zelenko <eugene.zelenko@gmail.com>
Thu, 31 Aug 2017 22:06:09 +0000 (22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312290 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/OptBisect.h
lib/IR/OptBisect.cpp

index 185a5ac956f54f5386c31b9d640c8e574ba03bf6..09e67aa792467ad5f6513e27104dc7ffb49d5246 100644 (file)
@@ -1,4 +1,4 @@
-//===----------- llvm/IR/OptBisect.h - LLVM Bisect support -------------===//
+//===- llvm/IR/OptBisect.h - LLVM Bisect support ----------------*- C++ -*-===//
 //
 //                     The LLVM Compiler Infrastructure
 //
 #ifndef LLVM_IR_OPTBISECT_H
 #define LLVM_IR_OPTBISECT_H
 
+#include "llvm/ADT/StringRef.h"
+
 namespace llvm {
 
 class Pass;
-class StringRef;
-class Twine;
 
 /// This class implements a mechanism to disable passes and individual
 /// optimizations at compile time based on a command line option
index f1c70058fac2c1257732678413f10cbd3e73bcef..dc7dcd2e4a97c758f5d4cd21f82e965a16781182 100644 (file)
@@ -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,