-
Enhancement
-
Resolution: Won't Fix
-
P4
-
5.0u4, 9, 10
-
sparc
-
generic
Performance can be gained by replacing the "branch always"
at the end of a loop with a conditional branch, thus
avoiding a branch for exiting in the middle of loop.
For example:
bge,pn %xcc, endLoop
nop
mov %g4, %o3
ba,pt %icc, beginLoop
nop
endLoop:
can be transformed into:
mov %g4, %o3
bl,pt %xcc, beginLoop
nop
since there is no harm in executing the "mov" in the
case when the branch is not taken (the loop is exiting).
at the end of a loop with a conditional branch, thus
avoiding a branch for exiting in the middle of loop.
For example:
bge,pn %xcc, endLoop
nop
mov %g4, %o3
ba,pt %icc, beginLoop
nop
endLoop:
can be transformed into:
mov %g4, %o3
bl,pt %xcc, beginLoop
nop
since there is no harm in executing the "mov" in the
case when the branch is not taken (the loop is exiting).
- relates to
-
JDK-6403974 Agressively fill SPARC delay slots
-
- Closed
-