<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 + SROA -> Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed"
href="http://llvm.org/bugs/show_bug.cgi?id=17271">17271</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SLP vectorizer + SROA -> Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' 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>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>hans@chromium.org
</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=11228" name="attach_11228" title="Reduced test-case">attachment 11228</a> <a href="attachment.cgi?id=11228&action=edit" title="Reduced test-case">[details]</a></span>
Reduced test-case
The attached reduced test case run as below triggers an assertion failure. This
breaks the Chromium build on Android.
$ /work/llvm/build.release/Release+Asserts/bin/clang -cc1 -triple
thumbv7--linux-androideabi -S -Os -vectorize-slp crash.ii
clang: /usr/local/google/work/llvm/lib/IR/Instructions.cpp:2327: static
llvm::CastInst *llvm::CastInst::Create(Instruction::CastOps, llvm::Value *,
llvm::Type *, const llvm::Twine &, llvm::Instruction *): Assertion
`castIsValid(op, S, Ty) && "Invalid cast!"' failed.
0 clang 0x00000000021692d5 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1 clang 0x0000000002169723
2 libpthread.so.0 0x00007fe5f06fbcb0
3 libc.so.6 0x00007fe5ef51e425 gsignal + 53
4 libc.so.6 0x00007fe5ef521b8b abort + 379
5 libc.so.6 0x00007fe5ef5170ee
6 libc.so.6 0x00007fe5ef517192
7 clang 0x00000000020eaf8c
llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
llvm::Twine const&, llvm::Instruction*) + 2316
8 clang 0x0000000001db2087
9 clang 0x0000000001db378c
10 clang 0x0000000001daf622
11 clang 0x0000000001dad1e6
12 clang 0x0000000001dac40e
13 clang 0x0000000001da9357
14 clang 0x0000000001da6ea4
15 clang 0x0000000002104eea
llvm::FPPassManager::runOnFunction(llvm::Function&) + 362
16 clang 0x0000000001eafa75
17 clang 0x0000000002105508
llvm::MPPassManager::runOnModule(llvm::Module&) + 440
18 clang 0x0000000002105bff llvm::PassManagerImpl::run(llvm::Module&)
+ 575
19 clang 0x0000000000841930
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5920
20 clang 0x000000000083f3d6
21 clang 0x00000000009a9ba3 clang::ParseAST(clang::Sema&, bool, bool)
+ 531
22 clang 0x000000000083e7e2 clang::CodeGenAction::ExecuteAction() +
514
23 clang 0x00000000006b7140 clang::FrontendAction::Execute() + 112
24 clang 0x00000000006948fd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 925
25 clang 0x000000000067b75f
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2943
26 clang 0x000000000067359f cc1_main(char const**, char const**, char
const*, void*) + 703
27 clang 0x00000000006799aa main + 8874
28 libc.so.6 0x00007fe5ef50976d __libc_start_main + 237
29 clang 0x0000000000673221
Stack dump:
0. Program arguments: /work/llvm/build.release/Release+Asserts/bin/clang
-cc1 -triple thumbv7--linux-androideabi -S -Os -vectorize-slp crash.ii
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'crash.ii'.
4. Running pass 'SROA' on function '@_ZN7testing4funcEv'
Aborted (core dumped)</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>