Displaying 2 results from an estimated 2 matches for "c60a1b3d".
2009 Oct 14
0
[LLVMdev] Moving dependent code into conditional statements
...___
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091014/c60a1b3d/attachment.html>
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