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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 24
    • Affects Version/s: 23
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: