To generate simplified IR, make sure fold
(X & signbit) ==/!= 0) -> X s>=/s< 0;
is scheduled before fold
((X << Y) & C) == 0 -> (X & (C >> Y)) == 0.
Differential D63026
[InstCombine] Fold icmp eq/ne (and %x, signbit), 0 -> %x s>=/s< 0 earlier huihuiz on Jun 7 2019, 2:12 PM. Authored by
Details To generate simplified IR, make sure fold (X & signbit) ==/!= 0) -> X s>=/s< 0; is scheduled before fold ((X << Y) & C) == 0 -> (X & (C >> Y)) == 0.
Diff Detail
Event TimelineComment Actions Yep, first fold looks good, some nits.
Comment Actions I think this looks good now, thank you for working on this!
Comment Actions this differential update address inline comment - adding comment for restriction this fold to single-use 'and' (PR10267) |
Can you please link the patch to which you split this out?