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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 24
    • 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

            Unassigned Unassigned
            tweidmann Theo Weidmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: