JDK-8302814 : Delete unused CountLoopEnd instruct with CmpX
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: riscv
  • Submitted: 2023-02-18
  • Updated: 2023-09-22
  • Resolved: 2023-03-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21 b16Fixed
Related Reports
Relates :  
Relates :  
Description
CountLoopEnd only for T_int, therefore the following instructs in *.ad are useless and should be deleted.

// x86
jmpLoopEndU(cmpOpU cop, rFlagsRegU cmp, label labl)

// aarch64
branchLoopEndU(cmpOpU cmp, rFlagsRegU cr, label lbl)

// for riscv.ad
CountedLoopEnd cmp (CmpL op1 op2)
CountedLoopEnd cmp (CmpU op1 op2)
CountedLoopEnd cmp (CmpP op1 op2)
CountedLoopEnd cmp (CmpN op1 op2)
CountedLoopEnd cmp (CmpF op1 op2)
CountedLoopEnd cmp (CmpD op1 op2)


Comments
Changeset: be764a71 Author: SUN Guoyun <40024232+sunny868@users.noreply.github.com> Committer: Vladimir Kozlov <kvn@openjdk.org> Date: 2023-03-29 17:18:59 +0000 URL: https://git.openjdk.org/jdk/commit/be764a711c1bf489f54d5bdc8e5e3b1891ea13cd
29-03-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12648 Date: 2023-02-20 07:34:08 +0000
23-02-2023