Re: [PATCH] Match: Handle commonly used unsigned modulo counters

2025-05-21 Thread MCC CS
Dear Richard, Thank you so much for your reply. I submitted the patch for the third case to LLVM before I've received your reply, and they said the same thing, that it would probably be used outside of loops as well and it would inflict a branch misprediction, so it should be implemented at the le

Re: [PATCH] Match: Handle commonly used unsigned modulo counters

2025-05-20 Thread Richard Biener
On Thu, May 15, 2025 at 10:29 AM MCC CS wrote: > > Dear all, > > Here's my patch for PR120265. Bootstrapped and tested on aarch64 that it > causes no regressions. I also added a testcase. I'd be grateful > if you could commit it. > > Otherwise, feedback to improve it is welcome. > > Many thanks >

[PATCH] Match: Handle commonly used unsigned modulo counters

2025-05-15 Thread MCC CS
Dear all, Here's my patch for PR120265. Bootstrapped and tested on aarch64 that it causes no regressions. I also added a testcase. I'd be grateful if you could commit it. Otherwise, feedback to improve it is welcome. Many thanks MCCCS From 1e901c3fa5c8cc3e55d4f1715b4aae4ae3d66714 Mon Sep 17 00