[llvm] b96e757 - [UnitTests] Move MergeFunction test from Utils to IPO

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 28 07:28:48 PST 2024


Author: Nikita Popov
Date: 2024-11-28T16:25:05+01:00
New Revision: b96e7570c991f1bb67646a20427a83f247326a25

URL: https://github.com/llvm/llvm-project/commit/b96e7570c991f1bb67646a20427a83f247326a25
DIFF: https://github.com/llvm/llvm-project/commit/b96e7570c991f1bb67646a20427a83f247326a25.diff

LOG: [UnitTests] Move MergeFunction test from Utils to IPO

So we depend on the correct library.

Added: 
    llvm/unittests/Transforms/IPO/MergeFunctionsTest.cpp

Modified: 
    llvm/unittests/Transforms/IPO/CMakeLists.txt
    llvm/unittests/Transforms/Utils/CMakeLists.txt

Removed: 
    llvm/unittests/Transforms/Utils/MergeFunctionsTest.cpp


################################################################################
diff  --git a/llvm/unittests/Transforms/IPO/CMakeLists.txt b/llvm/unittests/Transforms/IPO/CMakeLists.txt
index 65be2966bec049..5b45191afc711a 100644
--- a/llvm/unittests/Transforms/IPO/CMakeLists.txt
+++ b/llvm/unittests/Transforms/IPO/CMakeLists.txt
@@ -14,4 +14,5 @@ add_llvm_unittest(IPOTests
   AttributorTest.cpp
   FunctionSpecializationTest.cpp
   ImportIDTableTests.cpp
+  MergeFunctionsTest.cpp
   )

diff  --git a/llvm/unittests/Transforms/Utils/MergeFunctionsTest.cpp b/llvm/unittests/Transforms/IPO/MergeFunctionsTest.cpp
similarity index 100%
rename from llvm/unittests/Transforms/Utils/MergeFunctionsTest.cpp
rename to llvm/unittests/Transforms/IPO/MergeFunctionsTest.cpp

diff  --git a/llvm/unittests/Transforms/Utils/CMakeLists.txt b/llvm/unittests/Transforms/Utils/CMakeLists.txt
index 7effa5d8e7d6d2..5c7ec28709c169 100644
--- a/llvm/unittests/Transforms/Utils/CMakeLists.txt
+++ b/llvm/unittests/Transforms/Utils/CMakeLists.txt
@@ -26,7 +26,6 @@ add_llvm_unittest(UtilsTests
   LoopUtilsTest.cpp
   MemTransferLowering.cpp
   ModuleUtilsTest.cpp
-  MergeFunctionsTest.cpp
   ScalarEvolutionExpanderTest.cpp
   SizeOptsTest.cpp
   SSAUpdaterBulkTest.cpp


        


More information about the llvm-commits mailing list