On Thu, Dec 30, 2021 at 09:22:51AM -0700, Jeff Law wrote: > On 12/28/2021 6:27 PM, Xionghu Luo via Gcc-patches wrote: > > PR 90323 > > * simplify-rtx.c (simplify_context::simplify_binary_operation_1): > > Relax > > C from constant to constant or reg. > > > >gcc/testsuite/ChangeLog: > > > > * gcc.target/powerpc/pr90323.c: New test. > If C is not a constant and the target does not have and-complement > instructions, then this is likely worse than the original. If you want > to do this transformation, then you probably need to be checking target > costs.
It even then is still not worse on any modern superscalar machine! Segher