Following guidance in
https://llvm.org/docs/TestingGuide.html#testing-analysis
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
Awesome! Thanks
llvm/test/Transforms/Inline/ML/Inputs/size-estimator.ll | ||
---|---|---|
28 | I'm curious why you have the IR as a separate input file instead of having it inside the lit test? Is this because you wanted to not duplicate the IR in the two tests? |
llvm/test/Transforms/Inline/ML/Inputs/size-estimator.ll | ||
---|---|---|
28 | It's because I needed 2 tests, one for the 'default' build case (no TF available/enabled), the other for the TF case. This is because my understanding is that the REQUIRES statement is per file. Then I wanted to avoid duplication. If it's the preferred style, I can copy the IR in each of the 2 tests. |
llvm/test/Transforms/Inline/ML/Inputs/size-estimator.ll | ||
---|---|---|
28 | Ah, I missed that this was because of the "REQUIRE", makes sense. I would have duplicated the IR in the two files, but that's fine as is as well I think. |
I'm curious why you have the IR as a separate input file instead of having it inside the lit test? Is this because you wanted to not duplicate the IR in the two tests?
Merging the two tests with different check-prefix was reducing readability?