[llvm] 2614192 - Fix build breaks on ml-* bots introduced by include cleanups
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 11:29:26 PST 2022
Author: Mircea Trofin
Date: 2022-03-01T11:29:18-08:00
New Revision: 261419273a0a43a672699801ca38438ee37a68cd
URL: https://github.com/llvm/llvm-project/commit/261419273a0a43a672699801ca38438ee37a68cd
DIFF: https://github.com/llvm/llvm-project/commit/261419273a0a43a672699801ca38438ee37a68cd.diff
LOG: Fix build breaks on ml-* bots introduced by include cleanups
Added:
Modified:
llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
llvm/lib/Analysis/MLInlineAdvisor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp b/llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
index 377e76a7b08c2..2371ecbba615d 100644
--- a/llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
+++ b/llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
@@ -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;
diff --git a/llvm/lib/Analysis/MLInlineAdvisor.cpp b/llvm/lib/Analysis/MLInlineAdvisor.cpp
index c387800f361dd..2459db705da4b 100644
--- a/llvm/lib/Analysis/MLInlineAdvisor.cpp
+++ b/llvm/lib/Analysis/MLInlineAdvisor.cpp
@@ -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
More information about the llvm-commits
mailing list