Re: [PATCH] middle-end: Optimize ((X >> C1) & C2) != C3 for more cases.

2022-08-08 Thread Richard Biener via Gcc-patches
On Sun, Aug 7, 2022 at 9:08 PM Roger Sayle wrote: > > > Following my middle-end patch for PR tree-optimization/94026, I'd promised > Jeff Law that I'd clean up the dead-code in fold-const.cc now that these > optimizations are handled in match.pd. Alas, I discovered things aren't > quite that simp

[PATCH] middle-end: Optimize ((X >> C1) & C2) != C3 for more cases.

2022-08-07 Thread Roger Sayle
Following my middle-end patch for PR tree-optimization/94026, I'd promised Jeff Law that I'd clean up the dead-code in fold-const.cc now that these optimizations are handled in match.pd. Alas, I discovered things aren't quite that simple, as the transformations I'd added avoided cases where C2 ov