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

This commit is contained in:
Mircea Trofin 2020-08-06 09:21:14 -07:00
parent 90eb7d5283
commit ca7973cf18
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View 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");