Skip to content

Commit

Permalink
update the comment and do the same for arm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Andreenko committed Feb 11, 2020
1 parent 86263a2 commit f2fcda7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 4 additions & 8 deletions src/coreclr/src/jit/lsraarmarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,9 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//
int LinearScan::BuildIndir(GenTreeIndir* indirTree)
{
int srcCount = 0;
// If this is the rhs of a block copy (i.e. non-enregisterable struct),
// it has no register requirements.
if (indirTree->TypeGet() == TYP_STRUCT)
{
return srcCount;
}
// struct typed indirs are expected only on rhs of a block copy,
// but in this case they must be contained.
assert(indirTree->TypeGet() != TYP_STRUCT);

GenTree* addr = indirTree->Addr();
GenTree* index = nullptr;
Expand Down Expand Up @@ -109,7 +105,7 @@ int LinearScan::BuildIndir(GenTreeIndir* indirTree)
}
#endif // FEATURE_SIMD

srcCount = BuildIndirUses(indirTree);
int srcCount = BuildIndirUses(indirTree);
buildInternalRegisterUses();

if (indirTree->gtOper != GT_STOREIND)
Expand Down
4 changes: 3 additions & 1 deletion src/coreclr/src/jit/lsraxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,9 @@ int LinearScan::BuildCast(GenTreeCast* cast)
//
int LinearScan::BuildIndir(GenTreeIndir* indirTree)
{
assert(indirTree->TypeGet() != TYP_STRUCT); // Don't expect a struct type here.
// struct typed indirs are expected only on rhs of a block copy,
// but in this case they must be contained.
assert(indirTree->TypeGet() != TYP_STRUCT);

#ifdef FEATURE_SIMD
RefPosition* internalFloatDef = nullptr;
Expand Down

0 comments on commit f2fcda7

Please sign in to comment.