In D95959, the improve analysis for "C >> X" broken the fold
((%x & C) == 0) --> %x u< (-C) iff (-C) is power of two.
It simplifies C, but fails to satisfy the fold condition.
This patch try to restore C before the fold.
Differential D128790
[InstCombine] improve fold for icmp_eq_and to icmp_ult Chenbing.Zheng on Jun 29 2022, 1:51 AM. Authored by
Details In D95959, the improve analysis for "C >> X" broken the fold It simplifies C, but fails to satisfy the fold condition.
Diff Detail
Event TimelineComment Actions This seems like it should be a known bits transform instead. Any value with high zeros should allow the transform, not just a 'lshr'.
Comment Actions LGTM
|
Make this comment more exact: