[llvm-bugs] [Bug 25237] New: [Polly] Invariant Loads: verify function failed

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 18 12:01:48 PDT 2015


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

            Bug ID: 25237
           Summary: [Polly] Invariant Loads: verify function failed
           Product: Projects
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Polly
          Assignee: polly-dev at googlegroups.com
          Reporter: tobias at grosser.es
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15095
  --> https://llvm.org/bugs/attachment.cgi?id=15095&action=edit
Test case to reproduce the bug

With 250655 opt -polly-codegen -polly-process-unprofitable fails:

opt:
/home/grosser/Projects/polly/git/tools/polly/lib/CodeGen/CodeGeneration.cpp:164:
virtual bool (anonymous namespace)::CodeGeneration::runOnScop(polly::Scop &):
Assertion `!verifyGeneratedFunction(S, *EnteringBB->getParent()) &&
"Verification of generated function failed"' failed.
#0 0x7f752ba4dd8a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMSupport.so.3.8+0xc1d8a)
#1 0x7f752ba4d3f6 llvm::sys::RunSignalHandlers()
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMSupport.so.3.8+0xc13f6)
#2 0x7f752ba4f63a SignalHandler(int)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMSupport.so.3.8+0xc363a)
#3 0x7f752a3dc2f0 (/lib/x86_64-linux-gnu/libc.so.6+0x352f0)
#4 0x7f752a3dc267 gsignal
/build/buildd/glibc-2.21/signal/../sysdeps/unix/sysv/linux/raise.c:55:0
#5 0x7f752a3ddeca abort /build/buildd/glibc-2.21/stdlib/abort.c:91:0
#6 0x7f752a3d503d __assert_fail_base
/build/buildd/glibc-2.21/assert/assert.c:92:0
#7 0x7f752a3d50f2 (/lib/x86_64-linux-gnu/libc.so.6+0x2e0f2)
#8 0x7f7527c9d766
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x96766)
#9 0x7f7527c7b665 polly::ScopPass::runOnRegion(llvm::Region*,
llvm::RGPassManager&)
(/home/grosser/Projects/polly/cmake_opt/lib/../lib/libPolly.so+0x74665)
#10 0x7f752ddd008a llvm::RGPassManager::runOnFunction(llvm::Function&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMAnalysis.so.3.8+0x16c08a)
#11 0x7f752d134208 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMCore.so.3.8+0x1b8208)
#12 0x7f752d13444b llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMCore.so.3.8+0x1b844b)
#13 0x7f752d134905 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/grosser/Projects/polly/cmake_opt/bin/../lib/libLLVMCore.so.3.8+0x1b8905)
#14 0x41fbf1 main (/home/grosser/Projects/polly/cmake_opt/bin/opt+0x41fbf1)
#15 0x7f752a3c7a40 __libc_start_main
/build/buildd/glibc-2.21/csu/libc-start.c:323:0
#16 0x412639 _start (/home/grosser/Projects/polly/cmake_opt/bin/opt+0x412639)
Stack dump:
0.    Program arguments: /home/grosser/Projects/polly/cmake_opt/bin/opt -load
/home/grosser/Projects/polly/cmake_opt/lib/LLVMPolly.so -polly-codegen
/tmp/invariant_verify_function_failed.ll 
1.    Running pass 'Function Pass Manager' on module
'/tmp/invariant_verify_function_failed.ll'.
2.    Running pass 'Region Pass Manager' on function '@fileblobSetFilename'
3.    Running pass 'Polly - Create LLVM-IR from SCoPs' on basic block
'%land.lhs.true'

The crash disappears if I comment out the call to:

hoistInvariantLoads();

-- 
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/20151018/e70ac044/attachment.html>


More information about the llvm-bugs mailing list