Permalink
Browse files

arm64jit: Fix spilling for more than one temp reg.

Otherwise we hang trying to spill the same reg over and over.
  • Loading branch information...
unknownbrackets committed Dec 30, 2017
1 parent ee23674 commit 98ed6fab3f87ec91cdb3755756222c10bbfcf83d
Showing with 2 additions and 0 deletions.
  1. +2 −0 Core/MIPS/ARM64/Arm64RegCache.cpp
@@ -275,6 +275,8 @@ ARM64Reg Arm64RegCache::FindBestToSpill(bool unusedOnly, bool *clobbered) {
ARM64Reg reg = allocOrder[i];
if (ar[reg].mipsReg != MIPS_REG_INVALID && mr[ar[reg].mipsReg].spillLock)
continue;
if (ar[reg].tempLocked)
continue;
// As it's in alloc-order, we know it's not static so we don't need to check for that.

0 comments on commit 98ed6fa

Please sign in to comment.