JDK-8278857 : C2: optimize (x << 2) & -4 to x (and similar patterns)
Type:Enhancement
Component:hotspot
Sub-Component:compiler
Affected Version:18
Priority:P4
Status:Open
Resolution:Unresolved
Submitted:2021-12-15
Updated:2022-11-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.
This came up in the review of 8277850: C2 (optimize mask checks in counted loops). See this comment:
https://github.com/openjdk/jdk/pull/6697#pullrequestreview-827071366