Uh oh!
There was an error while loading. Please reload this page.
Add more DataFlow tests from linker to NativeAOT - #72777
Conversation
This adds several dataflow tests from linker - only those which are passing with the fixes in this change. More will be added later. Fixes: - Correctly handle Requires attributes in generic types - Recognize `ref Type` as interesting for data flow - Fix generic parameter propagation for compiler generated types - Treat multi-dimensional arrays as "Unknown" values (to match linker behavior)
vitek-karas
commented
Jul 25, 2022
The changes to the tests are ported back to linker in dotnet/linker#2912. |
tlakollo
left a comment
There was a problem hiding this comment.
Are we sure about having all these tests whose main focus is to verify if things are kept? I think once we start to validate the kept attribute now we will have to do it 100% right or we will break CI
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…his changes MetadataManager interface, but it should not be a problem. This fixes the attribute test failures. The CompilerGeneratedCodeDataflow test was failing because AOT didn't scan the body of the MoveNext method in the state machine for iterators. This is because the test actually never references IEnumerator<>.MoveNext and so the interface method and all of its implementations are removed. Fixed by making an explicit reference to it at least once.
vitek-karas
commented
Jul 25, 2022
Please see c1ca4bc for fixes to all CI failures. |
This was missed during porting of the changes from linker. More cleanup of tests.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This adds several dataflow tests from linker - only those which are passing with the fixes in this change. More will be added later.
Fixes:
ref Typeas interesting for data flow