<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 - Make "isMatMulOperandAcc" independent of isl representation."
   href="https://bugs.llvm.org/show_bug.cgi?id=34096">34096</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Make "isMatMulOperandAcc" independent of isl representation.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Polly
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Optimizer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>polly-dev@googlegroups.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>cs14btech11001@iith.ac.in
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18920" name="attach_18920" title="(Non-reduced) test-case for matmul recognition in TensorFlow.">attachment 18920</a> <a href="attachment.cgi?id=18920&action=edit" title="(Non-reduced) test-case for matmul recognition in TensorFlow.">[details]</a></span>
(Non-reduced) test-case for matmul recognition in TensorFlow.

The MatMul pattern recognition is quite restrictive. The number of "disjuncts"
in the isl_map containing constraint information is required to be 1 (as per
isl_coalesce - which should ideally produce a domain map with a single
disjunct, but does not under some circumstances) and the number of constraints
on the disjunct is required to be 2. 

We should come up with a more efficient implementation of the MatMul
recognition that is independent of this isl representation. 

******************

To run test case -

opt matmul.ll -sroa -simplifycfg -loop-rotate -loop-simplify -polly-scops
-polly-delicm -polly-opt-isl -polly-process-unprofitable -polly-use-llvm-names
-pass-remarks-analysis=polly-detect -debug-only=polly-opt-isl,polly-delicm
-polly-delicm-partial-writes

(Will not print "Matrix Multiplication pattern detected")</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>