C2: refactor Mod cases in Compile::final_graph_reshaping_main_switch()

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 23
    • Component/s: hotspot
    • b16

      Op_ModI/Op_ModL/Op_UModI/Op_UModL cases are almost identical and could be refactored to a single one possibly using MulNode::make() and new similar helper methods.

      If there's no IR test that verifies this transformation, it would be nice to add some to verify the refactoring doesn't break anything.

            Assignee:
            Kangcheng Xu
            Reporter:
            Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: