Re: [to-be-committed] [RISC-V] Minor cleanup/improvement to bset/binv patterns

2024-06-18 Thread Maciej W. Rozycki
On Tue, 18 Jun 2024, Jeff Law wrote: > This has gone through my tester. I'll wait for a verdict from pre-commit CI > before moving forward. Why do these "[to-be-committed]" annotations end up in the repository though? It does not appear to me to be useful information to be stored there forev

[to-be-committed] [RISC-V] Minor cleanup/improvement to bset/binv patterns

2024-06-18 Thread Jeff Law
This patch introduces a bit_optab iterator that maps IOR/XOR to bset and binv (and one day bclr if we need it). That allows us to combine some patterns that only differed in the RTL opcode (IOR vs XOR) and in the name/assembly (bset vs binv). Additionally this also allow us to use the iterato