Fix ILTrim field store dataflow - #134079
Conversation
Include instance and static field stores when deciding whether to run dataflow analysis, allowing annotated field assignments to produce diagnostics. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: aefef8d7-5bed-4988-a4f8-6e1ff0f70510
|
Azure Pipelines: Successfully started running 4 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @dotnet/crossgen-contrib |
There was a problem hiding this comment.
🟢 Approval recommended
The reviewed changes are focused and have no unresolved blocking issues.
Pull request overview
Fixes ILTrim dataflow analysis for values stored into annotated fields.
Changes:
- Detects
stfldandstsfldfield stores. - Removes five resolved expected failures.
File summaries
| File | Changes |
|---|---|
src/coreclr/tools/ILTrim.Tests/ILTrimExpectedFailures.txt |
Removes resolved expected failures. |
src/coreclr/tools/ILTrim.Core/DependencyAnalysis/MethodBodyNode.cs |
Triggers dataflow analysis for field stores. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
|
Azure Pipelines: Successfully started running 4 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @agocke, @dotnet/illink |
An issue would be nice with summary for this series. |
ILTrim was our hackathon a couple years back (https://github.com/MichalStrehovsky/iltrim/pulls). The idea is to rebuild ILLink on top of the ILCompiler.TypeSystem, ILCompiler.DependencyAnalysis engine, and System.Reflection.Metadata that our AOT compilers are based on. If stars align, we would be able to replace src/tools/illink with this and:
It's not a committed project at this point so there's no Epic issue or anything. We don't even have a bug tracker, the bug tracker is ILTrimExpectedFailures.txt. This week is hackathon at Microsoft again. |
|
/ba-g build analysis is hanging, but everything else is passing |
Layer 1 of 12 in the ILTrim expected-failure reduction stack.
Propagate dataflow dependencies through field stores so the stored value is analyzed against the target field requirements.
Stack-top validation
./build.sh tools+tools.ilasm+tools.illinktests+tools.cdactests -testpassed with 0 warnings and 0 errors.Stack created with GitHub Stacks CLI • Give Feedback 💬
Note
This PR description was generated by GitHub Copilot.