Re: [RFC][RISC-V] Add target dependent pass to optimize related permutation constants

2024-11-15 Thread Jeff Law
On 11/15/24 12:17 AM, Richard Biener wrote: On Thu, Nov 14, 2024 at 10:41 PM Jeff Law wrote: Several weeks ago I was looking at SATD and realized that we had loads of permutation constants that could be implemented as a trivial adjustment to a prior loaded permutation constant. For exampl

Re: [RFC][RISC-V] Add target dependent pass to optimize related permutation constants

2024-11-14 Thread Richard Biener
On Thu, Nov 14, 2024 at 10:41 PM Jeff Law wrote: > > > Several weeks ago I was looking at SATD and realized that we had loads > of permutation constants that could be implemented as a trivial > adjustment to a prior loaded permutation constant. > > For example if we had loaded a permutation consta

[RFC][RISC-V] Add target dependent pass to optimize related permutation constants

2024-11-14 Thread Jeff Law
Several weeks ago I was looking at SATD and realized that we had loads of permutation constants that could be implemented as a trivial adjustment to a prior loaded permutation constant. For example if we had loaded a permutation constant like 1, 3, 1, 3, 5, 7, 5, 7 and we needed 0, 2, 0, 2,