-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Description
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