Skip to content

Commit

Permalink
8341893: AArch64: Micro-optimize compressed ptr decoding
Browse files Browse the repository at this point in the history
Reviewed-by: aph, fyang
  • Loading branch information
shipilev committed Oct 14, 2024
1 parent 037f11b commit e3f6503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5011,8 +5011,10 @@ void MacroAssembler::decode_heap_oop(Register d, Register s) {
verify_heapbase("MacroAssembler::decode_heap_oop: heap base corrupted?");
#endif
if (CompressedOops::base() == nullptr) {
if (CompressedOops::shift() != 0 || d != s) {
if (CompressedOops::shift() != 0) {
lsl(d, s, CompressedOops::shift());
} else if (d != s) {
mov(d, s);
}
} else {
Label done;
Expand Down

0 comments on commit e3f6503

Please sign in to comment.