Merge pull request #1959 from SChernykh/dev

Optimized JIT compiler
This commit is contained in:
xmrig 2020-11-29 20:08:40 +07:00 committed by GitHub
commit 13ee9d09a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -495,12 +495,10 @@ namespace randomx {
emit32(instr.getImm32(), code, codePos);
emitByte(0x25, code, codePos);
if (instr.getModCond() < StoreL3Condition) {
emit32(AddressMask[instr.getModMem()], code, codePos);
}
else {
emit32(ScratchpadL3Mask, code, codePos);
}
const uint32_t mask1 = AddressMask[instr.getModMem()];
const uint32_t mask2 = ScratchpadL3Mask;
emit32((instr.mod < (StoreL3Condition << 4)) ? mask1 : mask2, code, codePos);
}
FORCE_INLINE void JitCompilerX86::genAddressImm(const Instruction& instr, uint8_t* code, uint32_t& codePos) {