[LLVMdev] Moving dependent code into conditional statements

Chris Lattner clattner at apple.com
Wed Oct 14 10:56:57 PDT 2009


On Oct 14, 2009, at 10:54 AM, Vikram S. Adve wrote:

> On Oct 14, 2009, at 10:22 AM, Chris Lattner wrote:
>
>>
>> On Oct 14, 2009, at 12:21 AM, Nicolas Capens wrote:
>>
>>> Hi all,
>>>
>>> Is there any existing optimization pass that will move as much  
>>> code into the body of a forward branch as possible? Consider the  
>>> following example:
>>
>> Hi Nicolas,
>>
>> Instcombine does this in simple cases
>
>
> The general version of this looks like classical PRE.

It's partial dead code elimination, the opposite problem.

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091014/35aeef3e/attachment.html>


More information about the llvm-dev mailing list