Skip to content

Commit

Permalink
Fix build breaks on ml-* bots introduced by include cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrofin committed Mar 1, 2022
1 parent 93b3339 commit 2614192
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
Expand Up @@ -23,13 +23,24 @@ using namespace llvm;

AnalysisKey InlineSizeEstimatorAnalysis::Key;

#define DEBUG_TYPE "inline-size-estimator"

#ifdef LLVM_HAVE_TF_API
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Instructions.h"
#include "llvm/MC/MCAsmLayout.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CommandLine.h"
#include <algorithm>
#include <deque>

cl::opt<std::string> TFIR2NativeModelPath(
"ml-inliner-ir2native-model", cl::Hidden,
cl::desc("Path to saved model evaluating native size from IR."));

#define DEBUG_TYPE "inline-size-estimator"
namespace {
unsigned getMaxInstructionID() {
#define LAST_OTHER_INST(NR) return NR;
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Analysis/MLInlineAdvisor.cpp
Expand Up @@ -29,6 +29,7 @@
using namespace llvm;

#if defined(LLVM_HAVE_TF_AOT_INLINERSIZEMODEL)
#include "llvm/Analysis/ReleaseModeModelRunner.h"
// codegen-ed file
#include "InlinerSizeModel.h" // NOLINT

Expand Down

0 comments on commit 2614192

Please sign in to comment.