C2: constant folding for ModFloatingNode should be done in Value method

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: hotspot

      It's current done in ModFloatingNode::Ideal

          const Type* constant_result = get_result_if_constant(dividend_type, divisor_type);
          if (constant_result != nullptr) {
            return make_tuple_of_input_state_and_constant_result(igvn, constant_result);
          }

      but should be in Value so CCP benefits from constant folding

            Assignee:
            Guanqiang Han
            Reporter:
            Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: