[LLVMbugs] [Bug 14592] New: Assertion building CINT2006 with clang, reduced testcase, reverting r170024 resolves issue.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 12 20:05:14 PST 2012


             Bug #: 14592
           Summary: Assertion building CINT2006 with clang, reduced
                    testcase, reverting r170024 resolves issue.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: willdtz at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 9693
  --> http://llvm.org/bugs/attachment.cgi?id=9693
Testcase triggering assertion failure in instcombine

Manifests as inability to build SPEC CINT2006 with clang (!), attached is
reduced IR triggering instcombine bug:

$ opt -verify -instcombine -disable-output bugpoint-reduced-simplified.ll
opt: /home/wdietz2/llvm/33-src/include/llvm/Support/Casting.h:208: typename
llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
llvm::Constant, Y = llvm::Value*]: Assertion `isa<X>(Val) && "cast<Ty>()
argument of incompatible type!"' failed.
0  opt             0x00000000010fd92f
1  opt             0x00000000010ff892
2  libpthread.so.0 0x0000003ff660f500
3  libc.so.6       0x0000003ff5a328a5 gsignal + 53
4  libc.so.6       0x0000003ff5a34085 abort + 373
5  libc.so.6       0x0000003ff5a2ba1e
6  libc.so.6       0x0000003ff5a2bae0 __assert_perror_fail + 0
7  opt             0x00000000008ca6c9 llvm::cast_retty<llvm::Constant,
llvm::Value*>::ret_type llvm::cast<llvm::Constant, llvm::Value*>(llvm::Value*
const&) + 57
8  opt             0x0000000000d6d028
9  opt             0x0000000000d75441
10 opt             0x0000000000d6e1e0
11 opt             0x0000000000d6ee8f
12 opt             0x0000000001028f18
llvm::FPPassManager::runOnFunction(llvm::Function&) + 568
13 opt             0x0000000001028ffb
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
14 opt             0x000000000102899a
llvm::MPPassManager::runOnModule(llvm::Module&) + 666
15 opt             0x0000000001028bc7 llvm::PassManagerImpl::run(llvm::Module&)
+ 247
16 opt             0x000000000053c057 main + 7031
17 libc.so.6       0x0000003ff5a1ecdd __libc_start_main + 253
18 opt             0x000000000052bf39
Stack dump:
0.      Program arguments: opt -verify -instcombine -disable-output
1.      Running pass 'Function Pass Manager' on module
2.      Running pass 'Combine redundant instructions' on function
zsh: abort      opt -verify -instcombine -disable-output

Looking for related commits, discovered reverting r170024 resolves this issue

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list