PR3707

Hello,

I'm back :slight_smile: This patch fixes pr3707.

Regards
-Jakub

pr3707.patch (3.17 KB)

Hello,

I'm back :slight_smile:

Great!

This patch fixes pr3707.

Can you explain a little more what this does? What is the intuition behind disabling this optimization?

-Chris

Oh, this patch is crap :frowning: Sorry for this.

The problem is that we lack of optimization for case like:

loopto:
   %timeout.0 = phi i32 [ 2000, %loopto ], [ %timeout.0.ph, %loopto.outer ]

Then something like "%reg<def> = MOV 2000" is inserted into loopto block and executed every time. I haven't found any optimization which can handle this and move instruction into some outer block.