Permalink
Browse files

arm64jit: Avoid flushing when mapping as pointer.

  • Loading branch information...
unknownbrackets committed Dec 29, 2017
1 parent 1b1e2c7 commit 27116dcb86ce1f4dfc7caa6eaf036ad995f4eeb9
Showing with 0 additions and 8 deletions.
  1. +0 −8 Core/MIPS/ARM64/Arm64RegCache.cpp
@@ -434,14 +434,6 @@ Arm64Gen::ARM64Reg Arm64RegCache::MapRegAsPointer(MIPSGPReg reg) {
mr[reg].loc = ML_ARMREG;
ARM64Reg a = DecodeReg(mr[reg].reg);
if (!jo_->enablePointerify) {
// First, flush the value.
if (ar[a].isDirty) {
ARM64Reg storeReg = ARM64RegForFlush(ar[a].mipsReg);
if (storeReg != INVALID_REG)
emit_->STR(INDEX_UNSIGNED, storeReg, CTXREG, GetMipsRegOffset(ar[a].mipsReg));
ar[a].isDirty = false;
}
// Convert to a pointer by adding the base and clearing off the top bits.
// If SP, we can probably avoid the top bit clear, let's play with that later.
emit_->ADD(EncodeRegTo64(a), EncodeRegTo64(a), MEMBASEREG);

0 comments on commit 27116dc

Please sign in to comment.