[llvm-commits] [PATCH] Make SimplifyCFGPass preserve the dominator tree

Peter Cooper peter_cooper at apple.com
Fri Jun 8 10:47:55 PDT 2012


Hi all

Attached is a pass to make the SimplifyCFGPass preserve the dominator tree.  Currently we see lots of recalculations of the dom tree right after simplify cfg runs, regardless of whether simplify cfg actually did anything.

This pass explicitly recalculates the dom tree if simplify cfg did anything, but otherwise just leaves it preserved so we recalculate less often.

Also, i'm open to suggestions for a better way to do this.  Ideally the pass manager could track this but not all passes return true from their run functions when they actually make a change.

Thanks,
Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplifycfg.patch
Type: application/octet-stream
Size: 1899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120608/9dc63984/attachment.obj>


More information about the llvm-commits mailing list