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

LICM crash, "Uses remain when a value is destroyed" #1280

Closed
nlewycky opened this issue Sep 12, 2006 · 3 comments
Closed

LICM crash, "Uses remain when a value is destroyed" #1280

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

Comments

@nlewycky
Copy link
Contributor

Bugzilla Link 908
Resolution FIXED
Resolved on Nov 07, 2018 00:17
Version trunk
OS All
Attachments simplified testcase

Extended Description

MultiSource/Applications/oggenc picked up a failure in the nightly run. It
appears to be in the loop invariant code motion pass. Here's what happens:

$ ~/llvm/Debug/bin/opt -licm bugpoint-reduced-simplified.bc
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.

While deleting: uint %tmp16.i
Use still stuck around after Def is destroyed: %exitcond155 = seteq uint 0,
%tmp16.i ; [#uses=0]

opt: Value.cpp:59: virtual llvm::Value::~Value(): Assertion `use_begin() ==
use_end() && "Uses remain when a value is destroyed!"' failed.
/home/nicholas/llvm/Debug/bin/opt((anonymous
namespace)::PrintStackTrace()+0x1a)[0x873245c]
/home/nicholas/llvm/Debug/bin/opt((anonymous
namespace)::SignalHandler(int)+0x110)[0x8732720]
[0xffffe500]
Aborted

@nlewycky
Copy link
Contributor Author

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Sep 12, 2006

Fixed.  Testcase here: 
Transforms/LICM/2006-09-12-DeadUserOfSunkInstr.ll

Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060911/037730.html

Thanks!

-Chris

@nlewycky
Copy link
Contributor Author

Verified. Thanks Chris!

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
clementval pushed a commit to clementval/llvm-project that referenced this issue Jan 17, 2022
clementval pushed a commit to clementval/llvm-project that referenced this issue Jan 17, 2022
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 loopoptim
Projects
None yet
Development

No branches or pull requests

2 participants