<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 causes clang core dump"
   href="http://llvm.org/bugs/show_bug.cgi?id=21162">21162</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>'SLP Vectorizer causes clang core dump
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>NetBSD
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tk@giga.or.at
          </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=13140" name="attach_13140" title="Attachment as requested">attachment 13140</a> <a href="attachment.cgi?id=13140&action=edit" title="Attachment as requested">[details]</a></span>
Attachment as requested

When compiling musepack r475 from
<a href="http://www.musepack.net/">http://www.musepack.net/</a> in pkgsrc
with "clang version 3.6 (trunk 215315)" as currently included in NetBSD, the
build dies with:

assertion "NumToSchedule == 0 && "could not schedule all instructions"" failed:
file
"/archive/foreign/src/external/bsd/llvm/lib/libLLVMVectorize/../../dist/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp",
line
2684, function "void
{anonymous}::BoUpSLP::scheduleBlock({anonymous}::BoUpSLP::BlockScheduling*)"
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64--netbsd -emit-obj
-disable-free -main-file-name psy.c -mrelocation-model static -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
 -target-linker-version 1 -dwarf-column-info -coverage-file
/scratch/audio/musepack/work/musepack_src_r475/libmpcpsy/CMakeFiles/mpcpsy_static.dir/psy.o
-resource-dir /usr/bin/../lib/clang/3.6 -D CVD_FASTLOG -D FA
ST_MATH -I /scratch/audio/musepack/work/musepack_src_r475/include -I
/scratch/audio/musepack/work/.buildlink/include -O3 -Wall
-fdebug-compilation-dir
/scratch/audio/musepack/work/musepack_src_r475/libmpcpsy -fer
ror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gnustep
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
CMakeFiles/mpcpsy_static.dir/psy.o -x c
/scratch/audio/musepack/work/musepack_src
_r475/libmpcpsy/psy.c
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'CallGraph Pass Manager' on module
'/scratch/audio/musepack/work/musepack_src_r475/libmpcpsy/psy.c'.
4.      Running pass 'SLP Vectorizer' on function '@SubbandEnergy'
clang: error: unable to execute command: Abort trap (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6 (trunk 215315)
Target: x86_64--netbsd
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/tmp/psy-891c85.c
clang: note: diagnostic msg: /var/tmp/psy-891c85.sh
clang: note: diagnostic msg: 

I'll attach the requested files.</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>