Re: [RFA] Minor improvement to compare elimination

2021-06-15 Thread Eric Botcazou
> I've bootstrapped and regression tested this on x86_64, though I doubt > it makes any difference there. BUt I'd bet it would help other targets > that don't expose double-word operations and have a condition code that > is clobbered by most instructions. > > OK for the trunk? Sure, thanks. --

[RFA] Minor improvement to compare elimination

2021-06-13 Thread Jeff Law via Gcc-patches
I was reviewing the generated code in libgcc for the H8 to see if there were any obvious redundant test/compares.  Sure enough I found one in the first file I looked at ;-) So after IRA we have something like this: (insn 43 112 44 4 (set (subreg:SI (reg:DI 40) 0)     (and:SI (subreg:SI (re