summaryrefslogtreecommitdiff
path: root/src/jit/gentree.h
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2018-09-21 15:44:01 -0700
committerCarol Eidt <carol.eidt@microsoft.com>2018-09-21 15:44:01 -0700
commit649d6653ca36f39cfa50cdd92c9efc7f319e24bc (patch)
tree5a7f55f392901cc28521a59d344f9d8ad1defdec /src/jit/gentree.h
parent4d65684d041045edd46c9523b6b51e6e17f560f4 (diff)
downloadcoreclr-649d6653ca36f39cfa50cdd92c9efc7f319e24bc.tar.gz
coreclr-649d6653ca36f39cfa50cdd92c9efc7f319e24bc.tar.bz2
coreclr-649d6653ca36f39cfa50cdd92c9efc7f319e24bc.zip
PR feedback: clarify that COPY/RELOAD can have register holes.
Diffstat (limited to 'src/jit/gentree.h')
-rw-r--r--src/jit/gentree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jit/gentree.h b/src/jit/gentree.h
index a0c86fbfbc..7489340a8d 100644
--- a/src/jit/gentree.h
+++ b/src/jit/gentree.h
@@ -5539,6 +5539,10 @@ struct GenTreeCopyOrReload : public GenTreeUnOp
// We need to return the highest index for which we have a valid register.
// Note that the gtOtherRegs array is off by one (the 0th register is gtRegNum).
// If there's no valid register in gtOtherRegs, gtRegNum must be valid.
+ // Note that for most nodes, the set of valid registers must be contiguous,
+ // but for COPY or RELOAD there is only a valid register for the register positions
+ // that must be copied or reloaded.
+ //
for (unsigned i = MAX_RET_REG_COUNT; i > 1; i--)
{
if (gtOtherRegs[i - 2] != REG_NA)