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

[IR framework] Support matching nested IR nodes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 23
    • hotspot
    • generic
    • generic

      See this thread https://github.com/openjdk/jdk/pull/17375#discussion_r1456368613

      For example, it would be great if we can match `a - b == c` with something like

      ```
      @IR(counts = {IRNode.CMP_LT[IRNode.ANY, IRNode.SUB_I, IRNode.ANY], "1"}
      ```

      The arguments in the [] are the inputs. IRNode.ANY matches any node. (The zero'th node is ANY because its the region node).

            Unassigned Unassigned
            jcao Joshua Cao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: