[LLVMbugs] [Bug 3703] New: Analysis not updated after running a CallGraphSCCPass.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Mar 2 15:51:11 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=3703

           Summary: Analysis not updated after running a CallGraphSCCPass.
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jlerouge at apple.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2643)
 --> (http://llvm.org/bugs/attachment.cgi?id=2643)
Testcase to reproduce the problem.

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


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list