Hi Jeff,

Thanks for the review and for offering to sponsor me.

The RISC-V inverted bit-extraction patch now uses define_split, and the test accepts either seqz or xori. I've kept this as a standalone patch.

I've moved the rotation optimization to simplify-rtx, retaining the mask to keep the count in range. This exposed an existing AArch64 bug: masked left rotations could match patterns that emit ROR. The rotation series now contains two patches, with the AArch64 fix followed by the generic optimization.

Testing and performance details are included in the RISC-V patch and the rotation series cover letter.

I also believe my account already has GCC write-after-approval access. I found that I forgot adding myself to MAINTAINERS. I'll confirm the account status and complete the remaining steps, I appreciate your support.

Best regards,
Jiawei

On 2026/11/11 1:06, Jeff Law wrote:

Any chance this can be a simpler define_split?  It looks like you're generating two output insns and it looks likely you have 3 or 4 input insns.  We generally prefer define_split over define_insn_and_split as the latter bypasses some critical combine costing heuristics and the output RTL is not generally available to further optimize.  Note we may also get xori dest,src,1 rather than seqz.  So we probably need to account for that possibility in the scan output.

No issues flagged by Sashiko.  OK with the changes noted above.

Thanks,
Jeff

ps.  I just realized you don't have commit privileges.  We should have probably have corrected that a while back. http://gcc.gnu.org/gitwrite.html should have a pointer to a form to fill out.  List me as your sponsor.

Reply via email to