Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Jan 6, 2024
1 parent 4ddfc57 commit 52ff035
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions erts/emulator/beam/jit/arm/beam_asm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1102,14 +1102,13 @@ class BeamModuleAssembler : public BeamAssembler,

if (cached_reg.isValid()) {
/* This memory location is cached. */
if (cached_reg != dst) {
if (cached_reg == dst) {
comment("skipped fetching of BEAM register");
} else {
comment("simplified fetching of BEAM register");
a.mov(dst, cached_reg);
preserve__cache(dst);
cache[slot].reg2 = dst;
} else {
comment("skipped fetching of BEAM register");
invalidate_cache(dst);
}
} else {
int slot;
Expand Down

0 comments on commit 52ff035

Please sign in to comment.