Skip to content

Commit

Permalink
Consume regs for BlkOpKindLoop (#97014)
Browse files Browse the repository at this point in the history
* Consume regs for BlkOpKindLoop

* Mark the node as contained

* undo Program.cs commit
  • Loading branch information
kunalspathak authored Jan 16, 2024
1 parent 066258c commit 45b56e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/coreclr/jit/lowerarmarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,11 @@ void Lowering::LowerBlockStore(GenTreeBlk* blkNode)
((blkNode->GetLayout()->GetSize() % TARGET_POINTER_SIZE) == 0) && src->IsIntegralConst(0))
{
blkNode->gtBlkOpKind = GenTreeBlk::BlkOpKindLoop;
#ifdef TARGET_ARM64
// On ARM64 we can just use REG_ZR instead of having to load
// the constant into a real register like on ARM32.
src->SetContained();
#endif
return;
}
#endif
Expand Down

0 comments on commit 45b56e5

Please sign in to comment.