JDK-8353359 : C2: Or(I|L)Node::Ideal is missing AddNode::Ideal call
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,21,24
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2025-04-01
  • Updated: 2025-04-01
Description
JDK-8248830 added Ideal overloads for Or(I|L) but is missing a call to AddNode::Ideal. This results in missed optimization opportunities when using or, e.g. "(a | 3) | 6" does not get optimized into "a | 7".
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24348 Date: 2025-04-01 06:20:48 +0000
01-04-2025