[llvm-bugs] [Bug 44027] New: gvn-hoist crashes: Assertion `&*ALI == *AAI && "Not the same accesses in the same order"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 17 00:42:26 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=44027

            Bug ID: 44027
           Summary: gvn-hoist crashes: Assertion `&*ALI == *AAI && "Not
                    the same accesses in the same order"' failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: cszide at 163.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 22820
  --> https://bugs.llvm.org/attachment.cgi?id=22820&action=edit
svm.bc

$clang -v
clang version 10.0.0 (https://github.com/llvm/llvm-project.git
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 -gvn-hoist svm.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:2008:
void llvm::MemorySSA::verifyOrdering(llvm::Function&) const: Assertion `&*ALI
== *AAI && "Not the same accesses in the same order"' failed.
Stack dump:
0.      Program arguments:
/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt -gvn-hoist
svm.bc 
1.      Running pass 'Function Pass Manager' on module 'svm.bc'.
 #0 0x0000562fe6a2ae8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2891e8a)
 #1 0x0000562fe6a28ad4 llvm::sys::RunSignalHandlers()
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x288fad4)
 #2 0x0000562fe6a28c12 SignalHandler(int)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x288fc12)
 #3 0x00007f71951a3890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
 #4 0x00007f7193e55e97 raise
/build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
 #5 0x00007f7193e57801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
 #6 0x00007f7193e4739a __assert_fail_base
/build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
 #7 0x00007f7193e47412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
 #8 0x0000562fe5cd62f7 llvm::MemorySSA::verifyOrdering(llvm::Function&) const
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b3d2f7)
 #9 0x0000562fe5cdb085 llvm::MemorySSA::verifyMemorySSA() const
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b42085)
#10 0x0000562fe63260c9
llvm::PMDataManager::verifyPreservedAnalysis(llvm::Pass*)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x218d0c9)
#11 0x0000562fe632972d llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x219072d)
#12 0x0000562fe632a329 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2191329)
#13 0x0000562fe632a701 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2191701)
#14 0x0000562fe4aa8bfe main
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x90fbfe)
#15 0x00007f7193e38b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#16 0x0000562fe4b4124a _start
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x9a824a)
Aborted (core dumped)

opt bugpoint-reduced-simplified.bc -gvn-hoist
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:2008:
void llvm::MemorySSA::verifyOrdering(llvm::Function&) const: Assertion `&*ALI
== *AAI && "Not the same accesses in the same order"' failed.
Stack dump:
0.      Program arguments:
/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt
bugpoint-reduced-simplified.bc -gvn-hoist 
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
 #0 0x00005615b21a7e8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2891e8a)
 #1 0x00005615b21a5ad4 llvm::sys::RunSignalHandlers()
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x288fad4)
 #2 0x00005615b21a5c12 SignalHandler(int)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x288fc12)
 #3 0x00007f421fae4890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
 #4 0x00007f421e796e97 raise
/build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
 #5 0x00007f421e798801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
 #6 0x00007f421e78839a __assert_fail_base
/build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
 #7 0x00007f421e788412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
 #8 0x00005615b14532f7 llvm::MemorySSA::verifyOrdering(llvm::Function&) const
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b3d2f7)
 #9 0x00005615b1458085 llvm::MemorySSA::verifyMemorySSA() const
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x1b42085)
#10 0x00005615b1aa30c9
llvm::PMDataManager::verifyPreservedAnalysis(llvm::Pass*)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x218d0c9)
#11 0x00005615b1aa672d llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x219072d)
#12 0x00005615b1aa7329 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2191329)
#13 0x00005615b1aa7701 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x2191701)
#14 0x00005615b0225bfe main
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x90fbfe)
#15 0x00007f421e779b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#16 0x00005615b02be24a _start
(/home/jack-zhou/Documents/llvm/llvm_truck/llvm-project/build/bin/opt+0x9a824a)
Aborted (core dumped)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191117/ce7a84a6/attachment-0001.html>


More information about the llvm-bugs mailing list