<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - SLP vectorizer strips metadata"
   href="http://llvm.org/bugs/show_bug.cgi?id=17741">17741</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SLP vectorizer strips metadata
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Scalar Optimizations
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hfinkel@anl.gov
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11451" name="attach_11451" title="IR file (derived from test/Transforms/SLPVectorizer/X86/simplebb.ll)">attachment 11451</a> <a href="attachment.cgi?id=11451&action=edit" title="IR file (derived from test/Transforms/SLPVectorizer/X86/simplebb.ll)">[details]</a></span>
IR file (derived from test/Transforms/SLPVectorizer/X86/simplebb.ll)

The SLP vectorizer strips, instead of merging, metadata (fpmath, tbaa, etc.).
The attached test case demonstrates the problem (in this case, the
corresponding metadata should appear on the created vector instructions).

The correct way to merge metadata in demonstrated in
lib/Transforms/Vectorize/BBVectorize.cpp (see the BBVectorize::combineMetadata
function), and, similarly, in GVN.</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>