[WIP/Test pr] Fix GTF_ASG flag on call nodes.#27732
Conversation
|
Fallout from my call arg list changes? 😟 |
I don't think so. The strange code in |
|
Right, it looks as if the call->gtFlags |= flagsSummary & GTF_ALL_EFFECT;and then does more stuff, such as calling |
The logic was added a long time ago, I could not find why. I am checking asm diffs to see if it has any clue.
|
Thank you for your contribution. As announced in #27549 the dotnet/runtime repository will be used going forward for changes to this code base. Closing this PR as no more changes will be accepted into master for this repository. If you’d like to continue working on this change please move it to dotnet/runtime. |
We were artificially added
GTF_ASGflag intotreeFlagsinfgDebugCheckFlagsto avoid asserts about missing flags.However, it created an inconsistency with
gtUpdateSideEffects. It correctly propagatedASGflag so we had a situation when callinggtUpdateSideEffects(tree, stmt)for an unchanged tree could result in changed flags:before calling
gtUpdateSideEffects(000055, stmt):after:
see that flags on [000065] have changed, but they should not.
Of course, there are many asm diffs from that change that should not exist.