mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-17 13:55:20 +00:00
7079626: x64 emits unnecessary REX prefix
Reviewed-by: kvn, iveresov, never
This commit is contained in:
parent
90651b2666
commit
fc31a8e0b9
@ -3672,7 +3672,7 @@ void Assembler::prefix(Address adr, Register reg, bool byteinst) {
|
||||
} else {
|
||||
if (adr.index_needs_rex()) {
|
||||
prefix(REX_X);
|
||||
} else if (reg->encoding() >= 4 ) {
|
||||
} else if (byteinst && reg->encoding() >= 4 ) {
|
||||
prefix(REX);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user