llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.03k stars 11.58k forks source link

assertion failed while compiling libmng #1383

Closed asl closed 14 years ago

asl commented 17 years ago
Bugzilla Link 1011
Resolution FIXED
Resolved on Feb 22, 2010 12:43
Version trunk
OS Linux
Attachments Reduced sources, Original sources

Extended Description

While compiling libmng (via llvm-gcc4 -O2) I've got an assertion:

cc1: /home/asl/proj/llvm/src/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1116: llvm::SDOperand llvm::SelectionDAG::getNode(unsigned int, llvm::MVT::ValueType, llvm::SDOperand): Assertion `Operand.getValueType() > VT && "Invalid truncate node, src < dst!"' failed. libmng_pixels.i:137: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://llvm.org/bugs> for instructions.

Please find:

  1. Original source
  2. Reduced sources (via delta).

Everything was ok without any optimizations (but no ok with just -O), so the problem itself can be not in backend, but in some optimization passes.

lattner commented 17 years ago

Fixed, patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061120/040136.html

Testcase here: CodeGen/Generic/2006-11-20-DAGCombineCrash.ll

-Chris

lattner commented 17 years ago

verified

asl commented 17 years ago

assigned to @lattner