<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 - loop-simplifycfg crashes: Assertion `dominates(MD, U) && "Memory Def does not dominate it's uses"' failed."
   href="https://bugs.llvm.org/show_bug.cgi?id=44029">44029</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>loop-simplifycfg crashes: Assertion `dominates(MD, U) && "Memory Def does not dominate it's uses"' failed.
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Scalar Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>cszide@163.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=22823" name="attach_22823" title="libigraph_la-igraph_hrg_types.bc">attachment 22823</a> <a href="attachment.cgi?id=22823&action=edit" title="libigraph_la-igraph_hrg_types.bc">[details]</a></span>
libigraph_la-igraph_hrg_types.bc

$clang -v
clang version 10.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
6624fcba43be88fd357c74435a4d6462858c8fed)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.4.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64

$opt -functionattrs -mem2reg -early-cse -mergefunc -globalopt -loop-simplifycfg
libigraph_la-igraph_hrg_types.bc 
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

opt:
/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/llvm/lib/Analysis/MemorySSA.cpp:2043:
void llvm::MemorySSA::verifyDomination(llvm::Function&) const: Assertion
`dominates(MD, U) && "Memory Def does not dominate it's uses"' failed.
Stack dump:
0.      Program arguments:
/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt
-functionattrs -mem2reg -early-cse -mergefunc -globalopt -loop-simplifycfg
libigraph_la-igraph_hrg_types.bc 
1.      Running pass 'Function Pass Manager' on module
'libigraph_la-igraph_hrg_types.bc'.
2.      Running pass 'Loop Pass Manager' on function
'@_ZN6fitHRG6dendro22sampleSplitLikelihoodsERi'
 #0 0x000055b73cd2be8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2891e8a)
 #1 0x000055b73cd29ad4 llvm::sys::RunSignalHandlers()
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x288fad4)
 #2 0x000055b73cd29c12 SignalHandler(int)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x288fc12)
 #3 0x00007fcc4da49890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
 #4 0x00007fcc4c6fbe97 raise
/build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
 #5 0x00007fcc4c6fd801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
 #6 0x00007fcc4c6ed39a __assert_fail_base
/build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
 #7 0x00007fcc4c6ed412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
 #8 0x000055b73bfdbfd6 llvm::MemorySSA::verifyDomination(llvm::Function&) const
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b41fd6)
 #9 0x000055b73bfdc079 llvm::MemorySSA::verifyMemorySSA() const
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b42079)
#10 0x000055b73c6270c9
llvm::PMDataManager::verifyPreservedAnalysis(llvm::Pass*)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x218d0c9)
#11 0x000055b73bfb08e9 llvm::LPPassManager::runOnFunction(llvm::Function&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b168e9)
#12 0x000055b73c62a855 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2190855)
#13 0x000055b73c62b329 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2191329)
#14 0x000055b73c62b701 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2191701)
#15 0x000055b73ada9bfe main
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x90fbfe)
#16 0x00007fcc4c6deb97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#17 0x000055b73ae4224a _start
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x9a824a)
Aborted (core dumped)

$opt bugpoint-reduced-simplified.bc -loop-simplifycfg
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.

opt:
/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/llvm/lib/Analysis/MemorySSA.cpp:2043:
void llvm::MemorySSA::verifyDomination(llvm::Function&) const: Assertion
`dominates(MD, U) && "Memory Def does not dominate it's uses"' failed.
Stack dump:
0.      Program arguments:
/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt
bugpoint-reduced-simplified.bc -loop-simplifycfg 
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2.      Running pass 'Loop Pass Manager' on function
'@_ZN6fitHRG6dendro22sampleSplitLikelihoodsERi'
 #0 0x0000555a92065e8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2891e8a)
 #1 0x0000555a92063ad4 llvm::sys::RunSignalHandlers()
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x288fad4)
 #2 0x0000555a92063c12 SignalHandler(int)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x288fc12)
 #3 0x00007fbdc71ae890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
 #4 0x00007fbdc5e60e97 raise
/build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
 #5 0x00007fbdc5e62801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
 #6 0x00007fbdc5e5239a __assert_fail_base
/build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
 #7 0x00007fbdc5e52412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
 #8 0x0000555a91315fd6 llvm::MemorySSA::verifyDomination(llvm::Function&) const
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b41fd6)
 #9 0x0000555a91316079 llvm::MemorySSA::verifyMemorySSA() const
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b42079)
#10 0x0000555a919610c9
llvm::PMDataManager::verifyPreservedAnalysis(llvm::Pass*)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x218d0c9)
#11 0x0000555a912ea8e9 llvm::LPPassManager::runOnFunction(llvm::Function&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b168e9)
#12 0x0000555a91964855 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2190855)
#13 0x0000555a91965329 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2191329)
#14 0x0000555a91965701 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2191701)
#15 0x0000555a900e3bfe main
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x90fbfe)
#16 0x00007fbdc5e43b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#17 0x0000555a9017c24a _start
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x9a824a)
Aborted (core dumped)</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>