Displaying 3 results from an estimated 3 matches for "6dcdeee2".
Did you mean:
6d4deee
2009 Oct 14
2
[LLVMdev] Moving dependent code into conditional statements
...gt;> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> <ATT00001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091014/6dcdeee2/attachment.html>
2009 Oct 14
0
[LLVMdev] Moving dependent code into conditional statements
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 (see "See if we can trivially
sink this instruction to a successor basic block.") but it misses
2009 Oct 14
3
[LLVMdev] Moving dependent code into conditional statements
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:
int foo(int x)
{
for(int i = 0; i < 1000000; i++)
{
int y = (x + 1) / x; // Expensive calculation! Result written to
memory.
if(x == 0) // Forward branch
{
x = y; // Body