Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8327381

Refactor type-improving transformations in BoolNode::Ideal to BoolNode::Value

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 24
    • 23
    • hotspot
    • b13

      Currently the transformations for expressions with patterns `((x & m) u<= m)` or `((m & x) u<= m)` to `true` is in BoolNode::Ideal function with a new constant node of value `1` created. However, this is technically a type-improving (reduction in range) transformation that's better suited in BoolNode::Value function.

      Test cases with IR test framework should also be added to ensure such transformations are correct and in effect.

            kxu Kangcheng Xu
            kxu Kangcheng Xu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: