<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 --- - [Polly] Invariant Loads: cannot handle void expression"
   href="https://llvm.org/bugs/show_bug.cgi?id=25236">25236</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Polly] Invariant Loads: cannot handle void expression
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Projects
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>Polly
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>polly-dev@googlegroups.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tobias@grosser.es
          </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=15094" name="attach_15094" title="Test case">attachment 15094</a> <a href="attachment.cgi?id=15094&action=edit" title="Test case">[details]</a></span>
Test case

With r250655 the attached test case fails for me with opt -polly-codegen
-polly-process-unprofitable:

/home/grosser/Projects/polly/git/tools/polly/lib/External/isl/isl_ast_build_expr.c:1657:
cannot handle void expression
#0 0x7f91ddd5ed8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMSupport.so.3.8+0xc1d8a)
#1 0x7f91ddd5e3f6 llvm::sys::RunSignalHandlers()
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMSupport.so.3.8+0xc13f6)
#2 0x7f91ddd6063a SignalHandler(int)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMSupport.so.3.8+0xc363a)
#3 0x7f91dc6ed2f0 (/lib/x86_64-linux-gnu/libc.so.6+0x352f0)
#4 0x7f91dc6ed267 gsignal
/build/buildd/glibc-2.21/signal/../sysdeps/unix/sysv/linux/raise.c:55:0
#5 0x7f91dc6eeeca abort /build/buildd/glibc-2.21/stdlib/abort.c:91:0
#6 0x7f91da027347
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x10f347)
#7 0x7f91da008ed6 isl_ast_build_expr_from_pw_aff_internal
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0xf0ed6)
#8 0x7f91da009425 isl_ast_build_with_arguments
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0xf1425)
#9 0x7f91d9faaa37 IslNodeBuilder::preloadInvariantLoad(polly::MemoryAccess
const&, isl_set*)
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x92a37)
#10 0x7f91d9faa089
IslNodeBuilder::preloadInvariantEquivClass(std::tuple<llvm::SCEV const*,
std::forward_list<polly::MemoryAccess*, std::allocator<polly::MemoryAccess*> >,
isl_set*> const&)
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x92089)
#11 0x7f91d9faafeb IslNodeBuilder::preloadInvariantLoads()
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x92feb)
#12 0x7f91d9fae285 (anonymous
namespace)::CodeGeneration::runOnScop(polly::Scop&)
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x96285)
#13 0x7f91d9f8c665 polly::ScopPass::runOnRegion(llvm::Region*,
llvm::RGPassManager&)
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x74665)
#14 0x7f91e00e108a llvm::RGPassManager::runOnFunction(llvm::Function&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMAnalysis.so.3.8+0x16c08a)
#15 0x7f91df445208 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMCore.so.3.8+0x1b8208)
#16 0x7f91df44544b llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMCore.so.3.8+0x1b844b)
#17 0x7f91df445905 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMCore.so.3.8+0x1b8905)
#18 0x41fbf1 main (/home/grosser/Projects/polly/cmake_opt/bin/opt+0x41fbf1)
#19 0x7f91dc6d8a40 __libc_start_main
/build/buildd/glibc-2.21/csu/libc-start.c:323:0
#20 0x412639 _start (/home/grosser/Projects/polly/cmake_opt/bin/opt+0x412639)</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>