<html>
    <head>
      <base href="https://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 --- - LLVM trunk crash with knl target (Assertion `isSCEVable(V->getType()))"
   href="https://llvm.org/bugs/show_bug.cgi?id=28313">28313</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM trunk crash with knl target (Assertion `isSCEVable(V->getType()))
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>anton.mitrokhin@phystech.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16637" name="attach_16637" title="Reproducer">attachment 16637</a> <a href="attachment.cgi?id=16637&action=edit" title="Reproducer">[details]</a></span>
Reproducer

Run:
<span class="quote">> clang++ -std=c++11 -O3 -fslp-vectorize-aggressive -march=knl -o out.o -c crash.cpp</span >

<span class="quote">> clang -v:</span >
clang version 3.9.0 (trunk 273805)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /export/users/amitrokh/llvm/bin-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/i686-redhat-linux/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64



Output:
clang-3.9:
/export/users/amitrokh/llvm/llvm-trunk/lib/Analysis/ScalarEvolution.cpp:3419:
const llvm::SCEV* llvm::ScalarEvolution::getSCEV(llvm::Value*): Assertion
`isSCEVable(V->getType()) && "Value is not SCEVable!"' failed.
#0 0x0000000001112b05 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x1112b05)
#1 0x00000000011107b6 llvm::sys::RunSignalHandlers()
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x11107b6)
#2 0x00000000011109e1 SignalHandler(int)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x11109e1)
#3 0x00007f1617f89100 __restore_rt (/lib64/libpthread.so.0+0xf100)
#4 0x00007f1616b815f7 __GI_raise (/lib64/libc.so.6+0x355f7)
#5 0x00007f1616b82ce8 __GI_abort (/lib64/libc.so.6+0x36ce8)
#6 0x00007f1616b7a566 __assert_fail_base (/lib64/libc.so.6+0x2e566)
#7 0x00007f1616b7a612 (/lib64/libc.so.6+0x2e612)
#8 0x0000000000a2c969 llvm::ScalarEvolution::getSCEV(llvm::Value*)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0xa2c969)
#9 0x000000000121d758
llvm::SLPVectorizerPass::vectorizeGEPIndices(llvm::BasicBlock*,
llvm::slpvectorizer::BoUpSLP&)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x121d758)
#10 0x000000000121ee3c llvm::SLPVectorizerPass::runImpl(llvm::Function&,
llvm::ScalarEvolution*, llvm::TargetTransformInfo*, llvm::TargetLibraryInfo*,
llvm::AAResults*, llvm::LoopInfo*, llvm::DominatorTree*,
llvm::AssumptionCache*, llvm::DemandedBits*) [clone .part.1040]
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x121ee3c)
#11 0x000000000121fb51 SLPVectorizer::runOnFunction(llvm::Function&)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x121fb51)
#12 0x0000000000d8f093 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0xd8f093)
#13 0x0000000000d8f44b llvm::FPPassManager::runOnModule(llvm::Module&)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0xd8f44b)
#14 0x0000000000d8f75f llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0xd8f75f)
#15 0x0000000001269cd8 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x1269cd8)
#16 0x000000000187fc86
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x187fc86)
#17 0x0000000001c9507b clang::ParseAST(clang::Sema&, bool, bool)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x1c9507b)
#18 0x000000000188003b clang::CodeGenAction::ExecuteAction()
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x188003b)
#19 0x0000000001596436 clang::FrontendAction::Execute()
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x1596436)
#20 0x00000000015703ee
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x15703ee)
#21 0x000000000162b14c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x162b14c)
#22 0x0000000000707738 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x707738)
#23 0x00000000006dae3f main
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x6dae3f)
#24 0x00007f1616b6db15 __libc_start_main (/lib64/libc.so.6+0x21b15)
#25 0x00000000007037d5 _start
(/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x7037d5)
Stack dump:
0.      Program arguments: /export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
crash.cpp -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu knl -momit-leaf-frame-pointer -dwarf-column-info
-debugger-tuning=gdb -coverage-file
/export/users/amitrokh/forCreduce/untracked/clang_ice_ii/out.o -resource-dir
/export/users/amitrokh/llvm/bin-trunk/bin/../lib/clang/3.9.0 -internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/x86_64-redhat-linux
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward
-internal-isystem /usr/local/include -internal-isystem
/export/users/amitrokh/llvm/bin-trunk/bin/../lib/clang/3.9.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/export/users/amitrokh/forCreduce/untracked/clang_ice_ii -ferror-limit 19
-fmessage-length 237 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-vectorize-slp-aggressive -o out.o -x c++ crash.cpp
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'Function Pass Manager' on module 'crash.cpp'.
4.      Running pass 'SLP Vectorizer' on function '@_Z3fn1v'
clang-3.9: error: unable to execute command: Aborted (core dumped)
clang-3.9: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (trunk 273805)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /export/users/amitrokh/llvm/bin-trunk/bin
clang-3.9: 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.
clang-3.9: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.9: note: diagnostic msg: /tmp/crash-81632b.cpp
clang-3.9: note: diagnostic msg: /tmp/crash-81632b.sh
clang-3.9: note: diagnostic msg:

********************</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>