Skip to content

Remove condprop pass #4278

@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 3906
Resolution FIXED
Resolved on Nov 10, 2009 23:56
Version unspecified
OS Linux
CC @lattner,@echristo

Extended Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions