-
Enhancement
-
Resolution: Fixed
-
P4
-
17, 21, 22
-
b14
-
x86
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8320426 | 21.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b08 |
Spotted this minor inefficiency when looking at profiling code. C1 profiling code uses `cmove`-s often, and often with immediates, so `LIR_Assembler::cmove` ends up emitting the real jump over the alternative branch. But the alternative branch is just `{reg,stack,const}2reg` conversion, and it is guaranteed to be short. Therefore, we can use the short branch for that forward jump.
- backported by
-
JDK-8320426 C1: x86 cmove can use short branches
- Resolved