Skip to content

core dump by -condprop optimization pass #1249

@llvmbot

Description

@llvmbot
Bugzilla Link 877
Resolution FIXED
Resolved on Feb 22, 2010 12:47
Version 1.6
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

Running opt bugpoint-reduced-condprop.8-11-2006.bc -condprop produces the
following output:
WARNING: You're attempting to print out a bytecode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bytecode first-hand, you
can force output with the `-f' option.

PHINode should have one entry for each predecessor of its parent basic block!
%tmp.i119.lcssa35.lcssa.lcssa.lcssa.lcssa.lcssa = phi
"struct.kc::impl_elem_patternrepresentation"* [ null, %bb1077 ] ;
<"struct.kc::impl_elem_patternrepresentation"*> [#uses=0]
Broken module found, compilation aborted!
Abort trap

The bytecode file can be found at:
http://www.patjenk.com/llvm/bugpoint-reduced-condprop.8-11-2006.bc

This error first occurred on a dual g5 running a beta version of mac os 10.5 and
was reproduced on a g4 running mac os 10.4.6. I was using the latest llvm CVS on
both machines.

The bug was exposed by running the following passes through bugpoint on kimwitu++:
-simplifycfg -instcombine -loopsimplify -instcombine -inline -sccp -lowersetjmp
-reassociate -adce -scalarrepl -loop-unswitch -condprop -mergereturn
-raiseallocs -dse -instcombine -tailcallelim -funcresolve -lcssa -mem2reg
-constmerge -simplifycfg -condprop -prune-eh -simplifycfg -argpromotion -basiccg
-globalopt -simplifycfg -verify -licm -instcombine -raise -verify -simplifycfg
-deadtypeelim -gcse -basiccg -break-crit-edges -loop-unroll -tailduplicate
-ipconstprop -deadargelim -simplify-libcalls -globaldce -instcombine -load-vn
-break-crit-edges -indvars

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacompile-failUse [accepts-invalid] and [rejects-valid] instead

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions