[llvm] ca7973c - [NFC]{MLInliner] Point out the tests' model dependencies

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 09:57:47 PDT 2020


Author: Mircea Trofin
Date: 2020-08-06T09:57:26-07:00
New Revision: ca7973cf18207b7d501c852852257c0b02be3b6c

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

LOG: [NFC]{MLInliner] Point out the tests' model dependencies

Added: 
    llvm/lib/Analysis/models/inliner/README.txt

Modified: 
    llvm/unittests/Analysis/TFUtilsTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/models/inliner/README.txt b/llvm/lib/Analysis/models/inliner/README.txt
new file mode 100644
index 000000000000..a76bb8930d6e
--- /dev/null
+++ b/llvm/lib/Analysis/models/inliner/README.txt
@@ -0,0 +1,3 @@
+Reference model for inliner -Oz decision policy.
+Note that, currently, this model is also referenced by test/Transforms/Inline/ML
+tests - if replacing it, check those tests, too.

diff  --git a/llvm/unittests/Analysis/TFUtilsTest.cpp b/llvm/unittests/Analysis/TFUtilsTest.cpp
index c33a5fd859a4..5d8425d49808 100644
--- a/llvm/unittests/Analysis/TFUtilsTest.cpp
+++ b/llvm/unittests/Analysis/TFUtilsTest.cpp
@@ -21,6 +21,8 @@ using namespace llvm;
 
 extern const char *TestMainArgv0;
 
+// NOTE! This test model is currently also used by test/Transforms/Inline/ML tests
+//- relevant if updating this model.
 static std::string getModelPath() {
   SmallString<128> InputsDir = unittest::getInputFileDirectory(TestMainArgv0);
   llvm::sys::path::append(InputsDir, "ir2native_x86_64_model");


        


More information about the llvm-commits mailing list