<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Assertion `!Result.is_injective().is_false()' failed. (ZoneAlgo.cpp : 574)"
   href="https://bugs.llvm.org/show_bug.cgi?id=41656">41656</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `!Result.is_injective().is_false()' failed. (ZoneAlgo.cpp : 574)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Polly
          </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>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Optimizer
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>adamski.dominik@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21849" name="attach_21849" title="Simplified test case which causes assertion failure.">attachment 21849</a> <a href="attachment.cgi?id=21849&action=edit" title="Simplified test case which causes assertion failure.">[details]</a></span>
Simplified test case which causes assertion failure.

Code taken from llvm master branch. (Commit id:
54dbcfe5f017265ae829f054f28745b2680a0fa2 )

Command which causes assertion failure:
opt bugpoint-reduced-simplified.bc  -polly -O3

File bugpoint-reduced-simplified.bc is added as an attachment.

Output:
opt: llvm-project/polly/lib/Transform/ZoneAlgo.cpp:572:
isl::noexceptions::union_map polly::ZoneAlgorithm::computePerPHI(const
polly::ScopArrayInfo*): Assertion `!Result.is_injective().is_false()' failed.
Stack dump:
0.      Program arguments: opt bugpoint-reduced-simplified.bc -polly -O3 
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2.      Running pass 'Region Pass Manager' on function '@main'
3.      Running pass 'Polly - DeLICM/DePRE' on basic block
'%for.body.us.preheader.i'
 #0 0x00007fc9fdcf344d llvm::sys::PrintStackTrace(llvm::raw_ostream&)
llvm-project/llvm/lib/Support/Unix/Signals.inc:494:0
 #1 0x00007fc9fdcf34e0 PrintStackTraceSignalHandler(void*)
llvm-project/llvm/lib/Support/Unix/Signals.inc:558:0
 #2 0x00007fc9fdcf14e0 llvm::sys::RunSignalHandlers()
llvm-project/llvm/lib/Support/Signals.cpp:68:0
 #3 0x00007fc9fdcf2ea0 SignalHandler(int)
llvm-project/llvm/lib/Support/Unix/Signals.inc:357:0
 #4 0x00007fc9fbafcf20 (/lib/x86_64-linux-gnu/libc.so.6+0x3ef20)
 #5 0x00007fc9fbafce97 raise
/build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
 #6 0x00007fc9fbafe801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
 #7 0x00007fc9fbaee39a __assert_fail_base
/build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
 #8 0x00007fc9fbaee412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
 #9 0x00007fca01d994cf polly::ZoneAlgorithm::computePerPHI(polly::ScopArrayInfo
const*) llvm-project/polly/lib/Transform/ZoneAlgo.cpp:572:0
#10 0x00007fca01d919f1 (anonymous
namespace)::DeLICMImpl::tryMapPHI(polly::ScopArrayInfo const*,
isl::noexceptions::map) llvm-project/polly/lib/Transform/DeLICM.cpp:872:0
#11 0x00007fca01d92f95 (anonymous
namespace)::DeLICMImpl::collapseScalarsToStore(polly::MemoryAccess*)
llvm-project/polly/lib/Transform/DeLICM.cpp:1088:0
#12 0x00007fca01d949e8 (anonymous namespace)::DeLICMImpl::greedyCollapse()
llvm-project/polly/lib/Transform/DeLICM.cpp:1325:0
#13 0x00007fca01d94c83 (anonymous
namespace)::DeLICM::collapseToUnused(polly::Scop&)
llvm-project/polly/lib/Transform/DeLICM.cpp:1370:0
#14 0x00007fca01d94de5 (anonymous namespace)::DeLICM::runOnScop(polly::Scop&)
llvm-project/polly/lib/Transform/DeLICM.cpp:1390:0
#15 0x00007fca01c9be99 polly::ScopPass::runOnRegion(llvm::Region*,
llvm::RGPassManager&) llvm-project/polly/lib/Analysis/ScopPass.cpp:31:0
#16 0x00007fca0111dea2 llvm::RGPassManager::runOnFunction(llvm::Function&)
llvm-project/llvm/lib/Analysis/RegionPass.cpp:97:0
#17 0x00007fca0039c21e llvm::FPPassManager::runOnFunction(llvm::Function&)
llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1648:0
#18 0x00007fca0039c50f llvm::FPPassManager::runOnModule(llvm::Module&)
llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1685:0
#19 0x00007fca0039c965 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1752:0
#20 0x00007fca0039d125 llvm::legacy::PassManagerImpl::run(llvm::Module&)
llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1865:0
#21 0x00007fca0039d317 llvm::legacy::PassManager::run(llvm::Module&)
llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1897:0
#22 0x0000562fdfdaa582 main llvm-project/llvm/tools/opt/opt.cpp:899:0
#23 0x00007fc9fbadfb97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#24 0x0000562fdfd6c2ea _start (llvm-project/build/bin/opt+0x702ea)</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>