<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 --- - [AMDGPU][OpenCL]: Crash in Function Pass Manager"
   href="https://llvm.org/bugs/show_bug.cgi?id=29131">29131</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AMDGPU][OpenCL]: Crash in Function Pass Manager
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>funfunctor@folklore1984.net
          </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=17042" name="attach_17042" title="Orginal OpenCL JIT'ed program from Blender">attachment 17042</a> <a href="attachment.cgi?id=17042&action=edit" title="Orginal OpenCL JIT'ed program from Blender">[details]</a></span>
Orginal OpenCL JIT'ed program from Blender

Hi,

Attached are the input LLVM IR generated from Blenders Cycles engine put though
the Mesa/Clover's OpenCL's frontend and JIT'ed down by the Gallium interface.

[edward@localhost ~]$ llc input_cl.ll 
#0 0x00007f73b03d0c28 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib64/libLLVM-3.8.so+0x53fc28)
#1 0x00007f73b03cee8d llvm::sys::RunSignalHandlers()
(/usr/bin/../lib64/libLLVM-3.8.so+0x53de8d)
#2 0x00007f73b03cefdb (/usr/bin/../lib64/libLLVM-3.8.so+0x53dfdb)
#3 0x00007f73af25c770 __restore_rt (/usr/bin/../lib64/libc.so.6+0x34770)
#4 0x00007f73b06f2299 (/usr/bin/../lib64/libLLVM-3.8.so+0x861299)
#5 0x00007f73b06f2bb9 (/usr/bin/../lib64/libLLVM-3.8.so+0x861bb9)
#6 0x00007f73b06f5889 (/usr/bin/../lib64/libLLVM-3.8.so+0x864889)
#7 0x00007f73b06f7191 (/usr/bin/../lib64/libLLVM-3.8.so+0x866191)
#8 0x00007f73b06f75d5 (/usr/bin/../lib64/libLLVM-3.8.so+0x8665d5)
#9 0x00007f73b06f963b (/usr/bin/../lib64/libLLVM-3.8.so+0x86863b)
#10 0x00007f73b06f9f85 (/usr/bin/../lib64/libLLVM-3.8.so+0x868f85)
#11 0x00007f73b0516e88 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/bin/../lib64/libLLVM-3.8.so+0x685e88)
#12 0x00007f73b051720b llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/bin/../lib64/libLLVM-3.8.so+0x68620b)
#13 0x00007f73b051753d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/bin/../lib64/libLLVM-3.8.so+0x68653d)
#14 0x0000557975bae948 (/usr/bin/llc+0x18948)
#15 0x0000557975ba7270 main (/usr/bin/llc+0x11270)
#16 0x00007f73af248731 __libc_start_main (/usr/bin/../lib64/libc.so.6+0x20731)
#17 0x0000557975ba72e9 _start (/usr/bin/llc+0x112e9)
Stack dump:
0.      Program arguments: llc input_cl.ll 
1.      Running pass 'Function Pass Manager' on module 'input_cl.ll'.
2.      Running pass 'Simple Register Coalescing' on function
'@kernel_ocl_shader'
Segmentation fault (core dumped)

[edward@localhost ~]$ llc bugpoint-reduced-simplified.ll 
#0 0x00007f700a656c28 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib64/libLLVM-3.8.so+0x53fc28)
#1 0x00007f700a654e8d llvm::sys::RunSignalHandlers()
(/usr/bin/../lib64/libLLVM-3.8.so+0x53de8d)
#2 0x00007f700a654fdb (/usr/bin/../lib64/libLLVM-3.8.so+0x53dfdb)
#3 0x00007f70094e2770 __restore_rt (/usr/bin/../lib64/libc.so.6+0x34770)
#4 0x00007f700b46515e (/usr/bin/../lib64/libLLVM-3.8.so+0x134e15e)
#5 0x00007f700b466855 (/usr/bin/../lib64/libLLVM-3.8.so+0x134f855)
#6 0x00007f700a79ce88 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/bin/../lib64/libLLVM-3.8.so+0x685e88)
#7 0x00007f700a79d20b llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/bin/../lib64/libLLVM-3.8.so+0x68620b)
#8 0x00007f700a79d53d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/bin/../lib64/libLLVM-3.8.so+0x68653d)
#9 0x000055a2f5c69948 (/usr/bin/llc+0x18948)
#10 0x000055a2f5c62270 main (/usr/bin/llc+0x11270)
#11 0x00007f70094ce731 __libc_start_main (/usr/bin/../lib64/libc.so.6+0x20731)
#12 0x000055a2f5c622e9 _start (/usr/bin/llc+0x112e9)
Stack dump:
0.      Program arguments: llc bugpoint-reduced-simplified.ll 
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2.      Running pass 'SI annotate control flow' on function
'@svm_node_tex_coord'
Segmentation fault (core dumped)

Kind Regards,
Edward O'Callaghan.</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>