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

Peter Cooper peter_cooper at apple.com
Fri Jun 8 15:02:28 PDT 2012


On Jun 8, 2012, at 2:55 PM, John Criswell wrote:

> On 6/8/12 12:47 PM, Peter Cooper wrote:
>> 
>> 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.
> 
> Does SimplifyCFGPass return false from its run method when it doesn't change anything?  If so, does the PassManager just invalidate DomTree anyway because SimplifyCFGPass does not claim to preserve it?
It does return false in this case, yeah, but the pass manager actually invalidates it anyway.  I don't think it trusts the return value because some passes (like simplify lib calls) actually return false even if they did something.

Pete
> 
> -- John T.
> 
>> 
>> Thanks,
>> Pete
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120608/94742b13/attachment.html>


More information about the llvm-commits mailing list