<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 --- - SLPVectorizer.cpp:455: Assertion `SameTy && "Invalid types!"' failed"
   href="http://llvm.org/bugs/show_bug.cgi?id=16628">16628</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SLPVectorizer.cpp:455: Assertion `SameTy && "Invalid types!"' failed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>antoine.balestrat@gmail.com
          </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>Using LLVM/Clang 3.4 as of r186315 :

$ cat slip.c
short a, b;
int c;

void f(void)
{
    b = g() == (!c | !a);
}

$ clong -w -O1 -fslp-vectorize slip.c
clang: /home/merkil/clang/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:455:
void {anonymous}::BoUpSLP::buildTree_rec(llvm::ArrayRef<llvm::Value*>, unsigned
int): Assertion `SameTy && "Invalid types!"' failed.
0  clang           0x0000000001edf362 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x0000000001edef49
2  libpthread.so.0 0x00007fc9c83a2210
3  libc.so.6       0x00007fc9c75fb295 gsignal + 53
4  libc.so.6       0x00007fc9c75fe438 abort + 328
5  libc.so.6       0x00007fc9c75f4322
6  libc.so.6       0x00007fc9c75f43d2
7  clang           0x00000000014de75f
8  clang           0x00000000014df23e
9  clang           0x00000000014df1f9
10 clang           0x00000000014df43b
11 clang           0x00000000014e0c0c
12 clang           0x00000000014e0d1f
13 clang           0x00000000014e2e2b
14 clang           0x0000000001e783bf
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
15 clang           0x0000000001beb3a6
16 clang           0x0000000001e77eb7
llvm::MPPassManager::runOnModule(llvm::Module&) + 663
17 clang           0x0000000001e78077 llvm::PassManagerImpl::run(llvm::Module&)
+ 231
18 clang           0x000000000092c9a2
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 3506
19 clang           0x000000000092a54f
20 clang           0x0000000000aa7092 clang::ParseAST(clang::Sema&, bool, bool)
+ 514
21 clang           0x000000000092944e clang::CodeGenAction::ExecuteAction() +
78
22 clang           0x00000000007a8a19 clang::FrontendAction::Execute() + 265
23 clang           0x00000000007889e5
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 341
24 clang           0x000000000076fae2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1858
25 clang           0x0000000000769028 cc1_main(char const**, char const**, char
const*, void*) + 920
26 clang           0x000000000075be6e main + 4974
27 libc.so.6       0x00007fc9c75e7a55 __libc_start_main + 245
28 clang           0x0000000000767fc1
Stack dump:
0.    Program arguments: /home/merkil/clang/build/Release+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
slip.c -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -resource-dir
/home/merkil/clang/build/Release+Asserts/bin/../lib/clang/3.4 -internal-isystem
/usr/local/include -internal-isystem
/home/merkil/clang/build/Release+Asserts/bin/../lib/clang/3.4/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O1
-w -fdebug-compilation-dir /home/merkil/creduce/creduce -ferror-limit 19
-fmessage-length 169 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/slip-15647e.o -x c
slip.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module 'slip.c'.
4.    Running pass 'SLP Vectorizer' on function '@f'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (trunk 186315)
Target: x86_64-unknown-linux-gnu
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.</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>