Daniil Seredkin

Results comments of Daniil Seredkin

> Daniil - did you ever make any progress on this? If not, I'm intending to > try to get this done before the next release. Feel free to take...

Hello, Daan! Yes, I am still working on the issue.

> > ```ll > > define i1 @src(i32 %x, i32 %y, i32 %z) { > > %cmp1 = icmp ult i32 %x, %y > > %cmp2 = icmp ult i32...

Another thing is that Alive does says that the transformation is correct https://alive2.llvm.org/ce/z/p6hmwV. I am not sure, but I suspect that it can be wrong. ```ll define i1 @src(i32 %x,...

> I mentioned one such case where min form provides a better codegen in the > comment 2. The suggestion to generate the same code for both sounds reasonable, but...

I am not sure, but why would we need to canonicalize x < y && x < z to min? From %cmp1 = icmp ult i32 %x, %y %cmp2 =...

> > This is quite questionable because if new max(..) is loop invariant now, this transformation will help loop optimizers too. > > This goes both ways though: What if...

We could probably implement as a part of the issue transformations for similar patterns ``` ; 1) x > y || x > z -> x > min(y,z) define i1...

I ran the current version of opt and opt 9.0.0 for the generated IR with -print-after-all -O3 I found roughly the same parts of the log where phi is eliminated...