Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
improve dmd register allocation for findPool
Browse files Browse the repository at this point in the history
- avoids repeated load of this.pools
  • Loading branch information
MartinNowak committed Jan 18, 2015
1 parent 44cbfaa commit 4919de8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gc/gc.d
Original file line number Diff line number Diff line change
Expand Up @@ -2890,6 +2890,9 @@ nothrow:
{
assert(npools);

// let dmd allocate a register for this.pools
auto pools = this.pools;

if (npools == 1)
return pools[0];

Expand Down

0 comments on commit 4919de8

Please sign in to comment.