[PATCH] CSE MEMs loaded in narrower modes
Kai Henningsen
kaih@khms.westfalen.de
Sat Mar 8 10:13:00 GMT 2003
roger@www.eyesopen.com (Roger Sayle) wrote on 06.03.03 in <Pine.LNX.4.44.0303060621480.20707-100000@www.eyesopen.com>:
> Then thinking outside the box, I realized the problem could also be
> solved by loading "var" from memory in its original mode into a
> register, and then extracting the low part of the register. This
> representation is more convenient for GCC's RTL optimizers, and the
> conversion back to a HImode load would take place during combine.
> So good news, as hoped combine narrows the loads as appropriate and we
> don't lose anything in performance, and catch the optimization opportunity
> when available. Performance also remained the same on SPECfp2000 at -O2
> and both SPECint and SPECfp at -O3. The biggest surprise was the ~1%
> improvement in compiler performance at -O2:
Well ... another example for the perils of premature optimization ;-)
MfG Kai
More information about the Gcc-patches
mailing list