Re: [PATCH] Merge aarch64-cc-fusion into late-combine

2025-08-20 Thread Richard Biener
On Wed, Aug 20, 2025 at 1:05 PM Richard Sandiford wrote: > > I'd added the aarch64-specific CC fusion pass to fold a PTEST > instruction into the instruction that feeds the PTEST, in cases > where the latter instruction can set the appropriate flags as a > side-effect. > > Combine does the same op

[PATCH] Merge aarch64-cc-fusion into late-combine

2025-08-20 Thread Richard Sandiford
I'd added the aarch64-specific CC fusion pass to fold a PTEST instruction into the instruction that feeds the PTEST, in cases where the latter instruction can set the appropriate flags as a side-effect. Combine does the same optimisation. However, as explained in the comments, the PTEST case ofte