[LLVMbugs] [Bug 3906] New: Remove condprop pass

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Mar 29 17:02:22 PDT 2009


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

           Summary: Remove condprop pass
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Per summary, condprop should be removed.

As far as I can tell, simplifycfg knows how to do almost everything condprop
knows how to do. condprop knows how to do four things: threading a conditional
br on a PHI (dealt with in simplifycfg by FoldCondBranchOnPHI), threading a
switch on a PHI (not dealt with in simplifycfg), constant folding terminators
(dealt with in simplifycfg by a call to ConstantFoldTerminator), and merging a
block with a single successor into that successor (dealt with in simplifycfg by
a call to MergeBlockIntoPredecessor).  It seems simple enough extend
FoldCondBranchOnPHI to deal with switches; after that, condprop won't be doing
anything that simplifycfg can't do.


-- 
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