[LLVMbugs] [Bug 16628] New: SLPVectorizer.cpp:455: Assertion `SameTy && "Invalid types!"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 15 03:12:50 PDT 2013


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

            Bug ID: 16628
           Summary: SLPVectorizer.cpp:455: Assertion `SameTy && "Invalid
                    types!"' failed
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: antoine.balestrat at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.

-- 
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/20130715/5c4d556a/attachment.html>


More information about the llvm-bugs mailing list