<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LHS and RHS of the logical binary-operator && are the same on line 483. It is a possible copy-pasted bug."
   href="https://bugs.llvm.org/show_bug.cgi?id=47032">47032</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LHS and RHS of the logical binary-operator && are the same on line 483. It is a possible copy-pasted bug.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>info@ustchcs.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>LHS and RHS of the logical binary-operator && are the same on line 483. It is a
possible copy-pasted bug.  

(commit e3546c78cabfbf670391a57766872f0a8e28a423)

llvm-project/llvm/utils/TableGen/CodeGenDAGPatterns.cpp:line 483



   483   if (any_of(S, isIntegerOrPtr) && any_of(S, isIntegerOrPtr)) {
   484        auto NotInt = [](MVT VT) { return !isIntegerOrPtr(VT); };
   485        Changed |= berase_if(S, NotInt);
   486        Changed |= berase_if(B, NotInt);
   487      } else if (any_of(S, isFloatingPoint) && any_of(B,
isFloatingPoint)) {
   488        auto NotFP = [](MVT VT) { return !isFloatingPoint(VT); };
   489        Changed |= berase_if(S, NotFP);
   490        Changed |= berase_if(B, NotFP);
   491      } else if (S.empty() || B.empty()) {
   492        Changed = !S.empty() || !B.empty();
   493        S.clear();
   494        B.clear();
   495      } else {
   496        TP.error("Incompatible types");
   497        return Changed;
   498      }

Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-2.3: LHS and RHS of a logical binary-operator (&&, ||),
relational/equality binary-operator expression should not contain the same
sub-expression.)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>