LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1066 - Assertion failed in InstCombine
Summary: Assertion failed in InstCombine
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Scalar Optimizations (show other bugs)
Version: trunk
Hardware: All All
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2006-12-23 18:07 PST by Anton Korobeynikov
Modified: 2018-11-07 00:17 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
Failed bytecode (375 bytes, application/octet-stream)
2006-12-23 18:08 PST, Anton Korobeynikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Korobeynikov 2006-12-23 18:07:40 PST
$ ./opt -instcombine bugpoint-reduced-simplified.bc -o test_bc.bc -f
opt: /home/asl/proj/llvm/src/lib/VMCore/Value.cpp:157: void
llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion `New->getType() ==
getType() && "replaceAllUses of value with new value of different type!"' failed.
./opt((anonymous namespace)::PrintStackTrace()+0x1f)[0x836a7ff]
/lib/libc.so.6(abort+0xeb)[0xb7d81133]
/lib/libc.so.6(__assert_fail+0xeb)[0xb7d794f3]
./opt[0x832f26c]

Bytecode attached
Comment 1 Anton Korobeynikov 2006-12-23 18:08:07 PST
Created attachment 532 [details]
Failed bytecode
Comment 2 Reid Spencer 2006-12-23 18:42:12 PST
Fixed with this patch:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061218/041763.html