Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core dump by -condprop optimization pass #1249

Closed
llvmbot opened this issue Aug 12, 2006 · 3 comments
Closed

core dump by -condprop optimization pass #1249

llvmbot opened this issue Aug 12, 2006 · 3 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Aug 12, 2006

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

@llvmbot
Copy link
Collaborator Author

llvmbot commented Aug 12, 2006

assigned to @lattner

@llvmbot
Copy link
Collaborator Author

llvmbot commented Aug 12, 2006

This bug was also found by bugpoint on another dual g5. The bytecode file it
produced is located at :
http://www.patjenk.com/llvm/bugpoint-reduced-condprop.8-11-2006.2.bc

running opt bugpoint-reduced-simplified.bc -condprop produced:
PHINode should have one entry for each predecessor of its parent basic block!
%iftmp.333.1.lcssa113 = phi uint [ 0, %bb1294 ] ; [#uses=0]
Broken module found, compilation aborted!
Abort trap

The error was found by running the set of passes listed in the initial post
through bugpoint on kimwitu++.

@lattner
Copy link
Collaborator

lattner commented Aug 14, 2006

Fixed. Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060814/036724.html

testcase here:
Transforms/CondProp/2006-08-14-SingleEntryPhiCrash.ll

Thanks!

-Chris

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
kitano-metro pushed a commit to RIKEN-RCCS/llvm-project that referenced this issue Feb 14, 2023
refs llvm#1249 不要なヘッダファイルの削除、既存識別子と被る識別子の対処

See merge request a64fx-swpl/llvm-project!26
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead
Projects
None yet
Development

No branches or pull requests

2 participants