[LLVMbugs] [Bug 20921] New: Assertion failure when compiling a non-trivial combination of simple operations on i193 integers

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 12 07:40:40 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20921

            Bug ID: 20921
           Summary: Assertion failure when compiling a non-trivial
                    combination of simple operations on i193 integers
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jaak.randmets at cyber.ee
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13028
  --> http://llvm.org/bugs/attachment.cgi?id=13028&action=edit
The LLVM code that crashes llc.

To reproduce the issue compile the attached file with "llc -O1 Bug.ll".

The assert does not happen when compiling with "-O0" or when using 192
bit-integers. Even slight modifications to the attached code tend to result in
the crash disappearing. As such I haven't managed to simplify the code any
further.

LLVM is from SVN trunk 217588. x86_64 target.
The stack trace follows:

llc:
/home/jaak/usr/src/llvm.svn/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp:1703:
virtual void (anonymous namespace)::RegReductionPQBase::remove(llvm::SUnit *):
Assertion `!Queue.empty() && "Queue is empty!"' failed.
0  libLLVM-3.6svn.so 0x00007fa7f8c7e1c5 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  libLLVM-3.6svn.so 0x00007fa7f8c7ec5b
2  libpthread.so.0   0x00007fa7f84d2ed0
3  libc.so.6         0x00007fa7f72a4319 gsignal + 57
4  libc.so.6         0x00007fa7f72a5678 abort + 328
5  libc.so.6         0x00007fa7f729d486
6  libc.so.6         0x00007fa7f729d532
7  libLLVM-3.6svn.so 0x00007fa7f8d9d663
8  libLLVM-3.6svn.so 0x00007fa7f8da4d75
9  libLLVM-3.6svn.so 0x00007fa7f8da2337
10 libLLVM-3.6svn.so 0x00007fa7f8e2c5e2
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 4178
11 libLLVM-3.6svn.so 0x00007fa7f8e2aaa9
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 8553
12 libLLVM-3.6svn.so 0x00007fa7f8e27974
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1364
13 libLLVM-3.6svn.so 0x00007fa7f953a7a6
14 libLLVM-3.6svn.so 0x00007fa7f96d873c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 124
15 libLLVM-3.6svn.so 0x00007fa7f934cebb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 539
16 libLLVM-3.6svn.so 0x00007fa7f934d12b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
17 libLLVM-3.6svn.so 0x00007fa7f934d6a7
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 967
18 llc               0x000000000040ac91 main + 6193
19 libc.so.6         0x00007fa7f7290b25 __libc_start_main + 245
20 llc               0x0000000000407c01
Stack dump:
0.      Program arguments: llc -O1 Bug.ll 
1.      Running pass 'Function Pass Manager' on module 'Bug.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@func'
Aborted

-- 
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/20140912/66f21b15/attachment.html>


More information about the llvm-bugs mailing list