Skip to content

Function Passes can leave dangling pointers in CallGraph #4401

@llvmbot

Description

@llvmbot
Bugzilla Link 4029
Resolution DUPLICATE
Resolved on Sep 01, 2009 01:31
Version unspecified
OS Linux
Depends On #3973
Attachments Debugging patch that fires an assertion if the callgraph contains deleted instructions
Reporter LLVM Bugzilla Contributor
CC @lattner

Extended Description

The test Analysis/GlobalsModRef/purecse.ll runs opt -globalsmodref-aa -gvn -instcombine. The callgraph constructed for globalsmodref-aa is not destroyed
before gvn is run. Similarly, the test Transforms/CondProp/2007-08-01-InvalidRead.ll runs opt -inline -tailduplicate -condprop -simplifycfg, and
the callgraph constructed for -inline is not destroyed before simplifycfg is
run. This is in spite of the fact that gvn/simplifycfg neither require nor
preserve the callgraph.

Spotted using the attached debugging patch (which would be good to commit
one day). My guess is that this is essentially the same problem as #3973 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilladuplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions