<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] Schedule incorrectly constructed in case of infinite loop"
   href="https://llvm.org/bugs/show_bug.cgi?id=25316">25316</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Polly] Schedule incorrectly constructed in case of infinite loop
          </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=15160" name="attach_15160" title="Test case">attachment 15160</a> <a href="attachment.cgi?id=15160&action=edit" title="Test case">[details]</a></span>
Test case

With 251234 and polly-opt -polly-codegen -polly-process-unprofitable I see the
following error during schedule construction:

opt:
/home/grosser/Projects/polly/git/tools/polly/lib/Analysis/ScopInfo.cpp:3122:
void polly::Scop::buildSchedule(llvm::Region *, DenseMap<llvm::Loop *,
std::pair<isl_schedule *, unsigned int> > &): Assertion
`LoopSchedules.count(PL)' failed.
#0 0x7fe96c295d8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMSupport.so.3.8+0xc1d8a)
#1 0x7fe96c2953f6 llvm::sys::RunSignalHandlers()
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMSupport.so.3.8+0xc13f6)
#2 0x7fe96c29763a SignalHandler(int)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMSupport.so.3.8+0xc363a)
#3 0x7fe96ac242f0 (/lib/x86_64-linux-gnu/libc.so.6+0x352f0)
#4 0x7fe96ac24267 gsignal
/build/buildd/glibc-2.21/signal/../sysdeps/unix/sysv/linux/raise.c:55:0
#5 0x7fe96ac25eca abort /build/buildd/glibc-2.21/stdlib/abort.c:91:0
#6 0x7fe96ac1d03d __assert_fail_base
/build/buildd/glibc-2.21/assert/assert.c:92:0
#7 0x7fe96ac1d0f2 (/lib/x86_64-linux-gnu/libc.so.6+0x2e0f2)
#8 0x7fe9684ad329 polly::Scop::buildSchedule(llvm::Region*,
llvm::DenseMap<llvm::Loop*, std::pair<isl_schedule*, unsigned int>,
llvm::DenseMapInfo<llvm::Loop*>, llvm::detail::DenseMapPair<llvm::Loop*,
std::pair<isl_schedule*, unsigned int> > >&)
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x60329)
#9 0x7fe9684abc61 polly::Scop::init(llvm::AAResults&)
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x5ec61)
#10 0x7fe9684b450d polly::ScopInfo::buildScop(llvm::Region&,
llvm::DominatorTree&)
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x6750d)
#11 0x7fe9684b4a52 polly::ScopInfo::runOnRegion(llvm::Region*,
llvm::RGPassManager&)
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x67a52)
#12 0x7fe96e61808a llvm::RGPassManager::runOnFunction(llvm::Function&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMAnalysis.so.3.8+0x16c08a)
#13 0x7fe96d97c208 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMCore.so.3.8+0x1b8208)
#14 0x7fe96d97c44b llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMCore.so.3.8+0x1b844b)
#15 0x7fe96d97c905 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMCore.so.3.8+0x1b8905)</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>