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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 23
    • 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.

            kxu Kangcheng Xu
            roland Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: