[LLVMbugs] [Bug 4206] New: crash in simplify lib calls

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue May 12 15:30:38 PDT 2009


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

           Summary: crash in simplify lib calls
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


simplify lib calls crashes on the attached .bc file, generated by clang:
--
ddunbar at lordcrumb:tmp$ opt -std-compile-opts < t.bc > t.opt.bc
Assertion failed: (S1->getType() == S2->getType() && "Cannot create binary
operator with two operands of differing type!"), function Create, file
Instructions.cpp, line 1606.
0   opt               0x00000001003aba5a PrintStackTrace(void*) + 38
1   opt               0x00000001003abf6a SignalHandler(int) + 288
2   libSystem.B.dylib 0x00007fff87c8890a _sigtramp + 26
3   libSystem.B.dylib 0x00000001012dbc50 _sigtramp + 2036675424
4   libSystem.B.dylib 0x00007fff87ce7072 __assert_rtn + 237
5   opt               0x000000010032384a
llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*,
llvm::Value*, std::string const&, llvm::Instruction*) + 106
6   opt               0x000000010018983e
llvm::BinaryOperator::CreateAdd(llvm::Value*, llvm::Value*, std::string const&)
+ 48
7   opt               0x00000001001b2c99 llvm::IRBuilder<true,
llvm::ConstantFolder>::CreateAdd(llvm::Value*, llvm::Value*, char const*) + 137
8   opt               0x00000001001a83b9 (anonymous
namespace)::FFSOpt::CallOptimizer(llvm::Function*, llvm::CallInst*,
llvm::IRBuilder<true, llvm::ConstantFolder>&) + 413
9   opt               0x00000001001a7dd1 (anonymous
namespace)::LibCallOptimization::OptimizeCall(llvm::CallInst*, llvm::TargetData
const&, llvm::IRBuilder<true, llvm::ConstantFolder>&) + 105
10  opt               0x00000001001aecdd (anonymous
namespace)::SimplifyLibCalls::runOnFunction(llvm::Function&) + 495
11  opt               0x000000010033f126
llvm::FPPassManager::runOnFunction(llvm::Function&) + 256
12  opt               0x000000010021f993 (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 623
13  opt               0x000000010033db93
llvm::MPPassManager::runOnModule(llvm::Module&) + 203
14  opt               0x000000010033f589
llvm::PassManagerImpl::run(llvm::Module&) + 111
15  opt               0x000000010033f5eb llvm::PassManager::run(llvm::Module&)
+ 33
16  opt               0x0000000100056f46 main + 4608
17  opt               0x000000010004aa48 start + 52
18  opt               0x0000000000000002 start + 4294661614
Stack dump:
0.      Running pass 'CallGraph Pass Manager' on module '<stdin>'.
1.      Running pass 'Simplify well-known library calls' on function
'@test_ffsl'
Abort trap
--


-- 
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