Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 484ba9b

Browse files
committed
Update GTF_VAR_USEASG documentation
1 parent a321506 commit 484ba9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/botr/ryujit-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The liveness analysis determines the set of defs, as well as the uses that are u
103103

104104
* The live-in and live-out sets are captured in the `bbLiveIn` and `bbLiveOut` fields of the `BasicBlock`.
105105
* The `GTF_VAR_DEF` flag is set on a lclVar node (all of which are of type `GenTreeLclVarCommon`) that is a definition.
106-
* The `GTF_VAR_USEASG` flag is set (in addition to the `GTF_VAR_DEF` flag) for the target of an update (e.g. +=).
106+
* The `GTF_VAR_USEASG` flag is set (in addition to the `GTF_VAR_DEF` flag) on partial definitions of a local variable (i.e. `GT_LCL_FLD` nodes that do not define the entire variable).
107107

108108
## SSA
109109

Documentation/botr/ryujit-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ They are also the lclVars for which GC ranges will be reported. Although the CLR
299299
### Liveness Analysis
300300
- The live-in and live-out sets are captured in the bbLiveIn and bbLiveOut fields of the BasicBlock.
301301
- The GTF_VAR_DEF flag is set on a lclVar GenTree node that is a definition.
302-
- The GTF_VAR_USEASG flag is set (in addition to the GTF_VAR_DEF flag) for the target of an update (e.g. +=).
302+
- The GTF_VAR_USEASG flag is set (in addition to the GTF_VAR_DEF flag) on partial definitions of a local variable (i.e. `GT_LCL_FLD` nodes that do not define the entire variable).
303303
- GTF_VAR_DEATH is set to indicate the last uses.
304304
- The bitvector implementation is abstracted and can be changed to a variable sized set.
305305

0 commit comments

Comments
 (0)