[llvm] r312290 - [IR] Missing changes for r312289 (NFC).
Eugene Zelenko via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 15:06:10 PDT 2017
Author: eugenezelenko
Date: Thu Aug 31 15:06:09 2017
New Revision: 312290
URL: http://llvm.org/viewvc/llvm-project?rev=312290&view=rev
Log:
[IR] Missing changes for r312289 (NFC).
Modified:
llvm/trunk/include/llvm/IR/OptBisect.h
llvm/trunk/lib/IR/OptBisect.cpp
Modified: llvm/trunk/include/llvm/IR/OptBisect.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/OptBisect.h?rev=312290&r1=312289&r2=312290&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/OptBisect.h (original)
+++ llvm/trunk/include/llvm/IR/OptBisect.h Thu Aug 31 15:06:09 2017
@@ -1,4 +1,4 @@
-//===----------- llvm/IR/OptBisect.h - LLVM Bisect support -------------===//
+//===- llvm/IR/OptBisect.h - LLVM Bisect support ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -15,11 +15,11 @@
#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
Modified: llvm/trunk/lib/IR/OptBisect.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/OptBisect.cpp?rev=312290&r1=312289&r2=312290&view=diff
==============================================================================
--- llvm/trunk/lib/IR/OptBisect.cpp (original)
+++ llvm/trunk/lib/IR/OptBisect.cpp Thu Aug 31 15:06:09 2017
@@ -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,
More information about the llvm-commits
mailing list