[NFC]{MLInliner] Point out the tests' model dependencies
authorMircea Trofin <mtrofin@google.com>
Thu, 6 Aug 2020 16:21:14 +0000 (09:21 -0700)
committerMircea Trofin <mtrofin@google.com>
Thu, 6 Aug 2020 16:57:26 +0000 (09:57 -0700)
llvm/lib/Analysis/models/inliner/README.txt [new file with mode: 0644]
llvm/unittests/Analysis/TFUtilsTest.cpp

diff --git a/llvm/lib/Analysis/models/inliner/README.txt b/llvm/lib/Analysis/models/inliner/README.txt
new file mode 100644 (file)
index 0000000..a76bb89
--- /dev/null
@@ -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.
index c33a5fd..5d8425d 100644 (file)
@@ -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");