[LLVMbugs] [Bug 17271] New: SLP vectorizer + SROA -> Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 17 13:15:18 PDT 2013


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

            Bug ID: 17271
           Summary: SLP vectorizer + SROA -> Assertion `castIsValid(op, S,
                    Ty) && "Invalid cast!"' failed
           Product: new-bugs
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20130917/e91b4c2e/attachment.html>


More information about the llvm-bugs mailing list