[LLVMbugs] [Bug 17741] New: SLP vectorizer strips metadata

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 30 15:19:49 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17741

            Bug ID: 17741
           Summary: SLP vectorizer strips metadata
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: hfinkel at anl.gov
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11451
  --> http://llvm.org/bugs/attachment.cgi?id=11451&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131030/789b777d/attachment.html>


More information about the llvm-bugs mailing list