[LLVMbugs] [Bug 16777] New: Clang crash caused by SLP vectorizer
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 2 07:58:03 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16777
Bug ID: 16777
Summary: Clang crash caused by SLP vectorizer
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: nrotem at apple.com
Reporter: samsonov at google.com
CC: dan433584 at gmail.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10974
--> http://llvm.org/bugs/attachment.cgi?id=10974&action=edit
Reproducer
The following line crashes for me:
(minimized reproducer in the attachment)
If I remove "-vectorize-slp", clang produces expected results.
$ bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -target-cpu x86-64
-O2 -std=c99 -x c graphics-439a32.c -vectorize-slp -o graphics-439a32.o
Instruction does not dominate all uses!
%17 = extractelement <2 x double> %4, i32 0
%g.0 = phi double [ 0.000000e+00, %if.then6 ], [ %17, %if.then ], [ %17,
%entry ]
Broken module found, compilation aborted!
0 clang 0x0000000001343235 _ZN4llvm3sys15PrintStackTraceEP8_IO_FILE
+ 37
1 clang 0x0000000001343653
2 libpthread.so.0 0x00007ff356b53cb0
3 libc.so.6 0x00007ff355d92425 gsignal + 53
4 libc.so.6 0x00007ff355d95b8b abort + 379
5 clang 0x0000000001279473
6 clang 0x000000000127912c
7 clang 0x000000000125feba
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE + 346
8 clang 0x000000000126014b
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE + 43
9 clang 0x00000000012604d8
_ZN4llvm13MPPassManager11runOnModuleERNS_6ModuleE + 440
10 clang 0x0000000001260bcf
_ZN4llvm15PassManagerImpl3runERNS_6ModuleE + 575
11 clang 0x0000000001260d6a _ZN4llvm11PassManager3runERNS_6ModuleE +
10
12 clang 0x0000000001362b17
_ZN5clang17EmitBackendOutputERNS_17DiagnosticsEngineERKNS_14CodeGenOptionsERKNS_13TargetOptionsERKNS_11LangOptionsEPN4llvm6ModuleENS_13BackendActionEPNSB_11raw_ostreamE
+ 5959
13 clang 0x000000000135ff96
14 clang 0x000000000160af33 _ZN5clang8ParseASTERNS_4SemaEbb + 531
15 clang 0x000000000135f3b2 _ZN5clang13CodeGenAction13ExecuteActionEv
+ 514
16 clang 0x0000000001554ee0 _ZN5clang14FrontendAction7ExecuteEv + 112
17 clang 0x0000000001533c0d
_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE + 925
18 clang 0x0000000001346d76
_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE + 2934
19 clang 0x00000000006552af _Z8cc1_mainPPKcS1_S0_Pv + 703
20 clang 0x0000000000653cf6 main + 8406
21 libc.so.6 0x00007ff355d7d76d __libc_start_main + 237
22 clang 0x0000000000651b19
Stack dump:
0. Program arguments: bin/clang -cc1 -triple x86_64-unknown-linux-gnu
-emit-obj -target-cpu x86-64 -O2 -std=c99 -x c graphics-439a32.c -vectorize-slp
-o graphics-439a32.o
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'graphics-439a32.c'.
4. Running pass 'Module Verifier' on function '@Rf_GReset'
--
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/20130802/1b2d3fae/attachment.html>
More information about the llvm-bugs
mailing list