Index: llvm/lib/Analysis/CMakeLists.txt =================================================================== --- llvm/lib/Analysis/CMakeLists.txt +++ llvm/lib/Analysis/CMakeLists.txt @@ -43,6 +43,7 @@ InstructionSimplify.cpp Interval.cpp IntervalPartition.cpp + KnowledgeRetention.cpp LazyBranchProbabilityInfo.cpp LazyBlockFrequencyInfo.cpp LazyCallGraph.cpp Index: llvm/lib/Analysis/KnowledgeRetention.cpp =================================================================== --- llvm/lib/Analysis/KnowledgeRetention.cpp +++ llvm/lib/Analysis/KnowledgeRetention.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Transforms/Utils/KnowledgeRetention.h" +#include "llvm/Analysis/KnowledgeRetention.h" #include "llvm/ADT/DenseSet.h" #include "llvm/IR/InstIterator.h" #include "llvm/IR/IntrinsicInst.h" Index: llvm/lib/Passes/PassBuilder.cpp =================================================================== --- llvm/lib/Passes/PassBuilder.cpp +++ llvm/lib/Passes/PassBuilder.cpp @@ -33,6 +33,7 @@ #include "llvm/Analysis/DominanceFrontier.h" #include "llvm/Analysis/GlobalsModRef.h" #include "llvm/Analysis/IVUsers.h" +#include "llvm/Analysis/KnowledgeRetention.h" #include "llvm/Analysis/LazyCallGraph.h" #include "llvm/Analysis/LazyValueInfo.h" #include "llvm/Analysis/LoopAccessAnalysis.h" @@ -179,7 +180,6 @@ #include "llvm/Transforms/Utils/CanonicalizeAliases.h" #include "llvm/Transforms/Utils/EntryExitInstrumenter.h" #include "llvm/Transforms/Utils/InjectTLIMappings.h" -#include "llvm/Transforms/Utils/KnowledgeRetention.h" #include "llvm/Transforms/Utils/LCSSA.h" #include "llvm/Transforms/Utils/LibCallsShrinkWrap.h" #include "llvm/Transforms/Utils/LoopSimplify.h" Index: llvm/lib/Transforms/Utils/CMakeLists.txt =================================================================== --- llvm/lib/Transforms/Utils/CMakeLists.txt +++ llvm/lib/Transforms/Utils/CMakeLists.txt @@ -29,7 +29,6 @@ InjectTLIMappings.cpp InstructionNamer.cpp IntegerDivision.cpp - KnowledgeRetention.cpp LCSSA.cpp LibCallsShrinkWrap.cpp Local.cpp Index: llvm/unittests/Analysis/CMakeLists.txt =================================================================== --- llvm/unittests/Analysis/CMakeLists.txt +++ llvm/unittests/Analysis/CMakeLists.txt @@ -20,6 +20,7 @@ DomTreeUpdaterTest.cpp GlobalsModRefTest.cpp IVDescriptorsTest.cpp + KnowledgeRetentionTest.cpp LazyCallGraphTest.cpp LoadsTest.cpp LoopInfoTest.cpp Index: llvm/unittests/Analysis/KnowledgeRetentionTest.cpp =================================================================== --- llvm/unittests/Analysis/KnowledgeRetentionTest.cpp +++ llvm/unittests/Analysis/KnowledgeRetentionTest.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Transforms/Utils/KnowledgeRetention.h" +#include "llvm/Analysis/KnowledgeRetention.h" #include "llvm/AsmParser/Parser.h" #include "llvm/IR/CallSite.h" #include "llvm/IR/LLVMContext.h" Index: llvm/unittests/Transforms/Utils/CMakeLists.txt =================================================================== --- llvm/unittests/Transforms/Utils/CMakeLists.txt +++ llvm/unittests/Transforms/Utils/CMakeLists.txt @@ -15,7 +15,6 @@ CodeMoverUtilsTest.cpp FunctionComparatorTest.cpp IntegerDivisionTest.cpp - KnowledgeRetentionTest.cpp LocalTest.cpp LoopRotationUtilsTest.cpp LoopUtilsTest.cpp