From 92a05bfbf03d5fa11d4003c755875e81ec4cdbcc Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Fri, 21 Sep 2018 01:54:08 +0000 Subject: [PATCH] [MCA] Remove dependency on CodeGen. Summary: There isn't any actual dependency - there's one #include from CodeGen but nothing from the header is actually used. With this change we can use the MCA library from CodeGen without circular dependencies (e.g. for scheduling). Reviewers: andreadb Reviewed By: andreadb Authored By: orodley Subscribers: mgorny, gbedwell, llvm-commits Differential Revision: https://reviews.llvm.org/D52288 llvm-svn: 342706 --- llvm/tools/llvm-mca/lib/CMakeLists.txt | 1 - llvm/tools/llvm-mca/lib/LLVMBuild.txt | 2 +- llvm/tools/llvm-mca/lib/Pipeline.cpp | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/tools/llvm-mca/lib/CMakeLists.txt b/llvm/tools/llvm-mca/lib/CMakeLists.txt index df9ed32..359a7d4 100644 --- a/llvm/tools/llvm-mca/lib/CMakeLists.txt +++ b/llvm/tools/llvm-mca/lib/CMakeLists.txt @@ -24,7 +24,6 @@ add_library(LLVMMCA llvm_update_compile_flags(LLVMMCA) llvm_map_components_to_libnames(libs - CodeGen MC Support ) diff --git a/llvm/tools/llvm-mca/lib/LLVMBuild.txt b/llvm/tools/llvm-mca/lib/LLVMBuild.txt index e3bf632..75f3a9e 100644 --- a/llvm/tools/llvm-mca/lib/LLVMBuild.txt +++ b/llvm/tools/llvm-mca/lib/LLVMBuild.txt @@ -19,4 +19,4 @@ type = Library name = MCA parent = Libraries -required_libraries = CodeGen MC Support +required_libraries = MC Support diff --git a/llvm/tools/llvm-mca/lib/Pipeline.cpp b/llvm/tools/llvm-mca/lib/Pipeline.cpp index a67ae98..28696ca 100644 --- a/llvm/tools/llvm-mca/lib/Pipeline.cpp +++ b/llvm/tools/llvm-mca/lib/Pipeline.cpp @@ -15,7 +15,6 @@ #include "Pipeline.h" #include "HWEventListener.h" -#include "llvm/CodeGen/TargetSchedule.h" #include "llvm/Support/Debug.h" namespace mca { -- 2.7.4