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

Add Ideal transformation: (~a) & (~b) => ~(a | b)

XMLWordPrintable

    • b05
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      `(~a) & (~b) => ~(a | b)` is a widely seen pattern, for example it is implemented for LLVM [here](https://github.com/llvm/llvm-project/blob/397f1ce9efb4eea1ee10fe4833f733b8c7abd878/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp#L1616C28-L1616C28); however it is missing in current implementation of hotspot. This pull request adds this transformation and associated tests.

      https://github.com/openjdk/jdk/pull/16333


            thartmann Tobias Hartmann
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: