Use eqv_uncast in *Mod*Nodes::value in divnode.cpp

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Not an Issue
    • Priority: P4
    • tbd
    • Affects Version/s: 24
    • Component/s: hotspot

      The *Mod*Node::value methods contain comparisons of the form:

      // X MOD X is 0
        if (in(1) == in(2)) {

      More of these might be added in JDK-8332268

      These could be improved by using mod->in(1)->eqv_uncast(mod->in(2)) to see through the cast nodes as discussed here: https://github.com/openjdk/jdk/pull/22061#discussion_r1856621633

            Assignee:
            Manuel Hässig
            Reporter:
            Theo Weidmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: