[llvm] cffe22a - Revert "[NFC] Move DroppedVariableStats code to Analysis (#120502)"
Mikhail Goncharov via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 01:57:14 PST 2024
Author: Mikhail Goncharov
Date: 2024-12-19T10:56:02+01:00
New Revision: cffe22a93726a64e6a205b5dcd1c306a62488412
URL: https://github.com/llvm/llvm-project/commit/cffe22a93726a64e6a205b5dcd1c306a62488412
DIFF: https://github.com/llvm/llvm-project/commit/cffe22a93726a64e6a205b5dcd1c306a62488412.diff
LOG: Revert "[NFC] Move DroppedVariableStats code to Analysis (#120502)"
that introduces a circular dependency of analysis -> codegen -> target
This reverts commit e389492d6a00e1c49a034e13343098541ebd03c6.
Added:
llvm/include/llvm/Passes/DroppedVariableStats.h
llvm/lib/Passes/DroppedVariableStats.cpp
Modified:
llvm/include/llvm/Passes/StandardInstrumentations.h
llvm/lib/Analysis/CMakeLists.txt
llvm/lib/Passes/CMakeLists.txt
Removed:
llvm/include/llvm/Analysis/DroppedVariableStats.h
llvm/lib/Analysis/DroppedVariableStats.cpp
################################################################################
diff --git a/llvm/include/llvm/Analysis/DroppedVariableStats.h b/llvm/include/llvm/Passes/DroppedVariableStats.h
similarity index 100%
rename from llvm/include/llvm/Analysis/DroppedVariableStats.h
rename to llvm/include/llvm/Passes/DroppedVariableStats.h
diff --git a/llvm/include/llvm/Passes/StandardInstrumentations.h b/llvm/include/llvm/Passes/StandardInstrumentations.h
index 23bfee7115df6f..6ba466f9269f09 100644
--- a/llvm/include/llvm/Passes/StandardInstrumentations.h
+++ b/llvm/include/llvm/Passes/StandardInstrumentations.h
@@ -19,13 +19,13 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"
-#include "llvm/Analysis/DroppedVariableStats.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/OptBisect.h"
#include "llvm/IR/PassTimingInfo.h"
#include "llvm/IR/ValueHandle.h"
+#include "llvm/Passes/DroppedVariableStats.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/TimeProfiler.h"
#include "llvm/Transforms/IPO/SampleProfileProbe.h"
diff --git a/llvm/lib/Analysis/CMakeLists.txt b/llvm/lib/Analysis/CMakeLists.txt
index 5cf3777253fbe4..0db5b80f336cb5 100644
--- a/llvm/lib/Analysis/CMakeLists.txt
+++ b/llvm/lib/Analysis/CMakeLists.txt
@@ -60,7 +60,6 @@ add_llvm_component_library(LLVMAnalysis
DomPrinter.cpp
DomTreeUpdater.cpp
DominanceFrontier.cpp
- DroppedVariableStats.cpp
DXILResource.cpp
DXILMetadataAnalysis.cpp
FunctionPropertiesAnalysis.cpp
diff --git a/llvm/lib/Passes/CMakeLists.txt b/llvm/lib/Passes/CMakeLists.txt
index 6425f4934b2103..9e16a446c9b399 100644
--- a/llvm/lib/Passes/CMakeLists.txt
+++ b/llvm/lib/Passes/CMakeLists.txt
@@ -1,5 +1,6 @@
add_llvm_component_library(LLVMPasses
CodeGenPassBuilder.cpp
+ DroppedVariableStats.cpp
OptimizationLevel.cpp
PassBuilder.cpp
PassBuilderBindings.cpp
diff --git a/llvm/lib/Analysis/DroppedVariableStats.cpp b/llvm/lib/Passes/DroppedVariableStats.cpp
similarity index 99%
rename from llvm/lib/Analysis/DroppedVariableStats.cpp
rename to llvm/lib/Passes/DroppedVariableStats.cpp
index 7162cece4f3d9b..5dc6b75fb8ace9 100644
--- a/llvm/lib/Analysis/DroppedVariableStats.cpp
+++ b/llvm/lib/Passes/DroppedVariableStats.cpp
@@ -11,7 +11,7 @@
///
///===---------------------------------------------------------------------===//
-#include "llvm/Analysis/DroppedVariableStats.h"
+#include "llvm/Passes/DroppedVariableStats.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Module.h"
More information about the llvm-commits
mailing list