[llvm-dev] RFC: New aggressive dead code elimination pass

Matthias Braun via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 23 13:07:19 PDT 2016


Can you give an example of a case that is missed today but catched by your pass?

> On Mar 23, 2016, at 6:43 AM, David Callahan via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hi,
>  
> I have a new variant of Aggressive Dead Code Elimination that also removes dead branching. It is designed to minimize the cost of control-dependence analysis in the common case where almost the entire program is live. It also can optionally remove dead but may-be-infinite loops. 
>  
> When enabled for –O3 (replacing current ADCE pass) and removing loops, impact on SPEC2006 is in the noise but it impacts internal benchmarks suites 1-2% with a comparable increase in compile time.   My expectation would be to enable –O3 only until we have some experience with cost but I suspect it should be fine –O2.
>  
> What information would the community like to see about such a change before I put up a diff and (including tweaks to unit tests).
>  
> Thanks
> david
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160323/1d1a2e7d/attachment.html>


More information about the llvm-dev mailing list