Skip to content

Analysis not updated after running a CallGraphSCCPass. #4075

@llvmbot

Description

@llvmbot
Bugzilla Link 3703
Version unspecified
OS All
Attachments Testcase to reproduce the problem.
Reporter LLVM Bugzilla Contributor
CC @lattner,@tlattner

Extended Description

The attached Hello.cpp file illustrates my problem. Replace the original Hello.cpp on the LLVM tree with that one, build and then run (assuming you are on Darwin):

$ ./Debug/bin/opt --debug-pass=Structure --load LLVMHello.dylib -mysccpass -hello -f -o t2.bc t.bc
Pass Arguments: -myanalysis -basiccg -mysccpass -hello -preverify -domtree -verify
Target Data Layout
ModulePass Manager
My Analysis
Basic CallGraph Construction
Call Graph SCC Pass Manager
My SCCPass
Hello World Pass
FunctionPass Manager
Preliminary module verification
Dominator Tree Construction
Module Verifier
Bitcode Writer
-- Done running MyAnalysis
-- Done running MySCCPass
-- Done running Hello

As you can see above, MyAnalysis is not re-run after MySCCPass, even though MySCCPass is not marking the analysis as beeing preserved. I was expecting it would be re-run so Hello can start with a valid analysis.

Thanks,
Julien

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillallvm:optimizationsobsoleteIssues with old (unsupported) versions of LLVM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions