bzero optimization rarely does
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Fri Jul 12 11:06:00 GMT 2002
> 2002-07-11 Roger Sayle <roger@eyesopen.com>
>
> * expr.c [CLEAR_RATIO]: New macro defining the maximum number
> of move instructions to use when clearing memory,
> c.f. MOVE_RATIO. [CLEAR_BY_PIECES_P]: New macro, using
> CLEAR_RATIO, to determine whether clear_by_pieces should be
> used to clear storage. (clear_storage): Use CLEAR_BY_PIECES_P
> instead of MOVE_BY_PIECES_P.
How about a testcase patterned after execute/string-opt-17.c?
(Must len really be less than 2 before we abort in the static memset?)
Also, you probably want to cc gcc-patches.
--Kaveh
--
Kaveh R. Ghazi Director of Systems Architecture
ghazi@caip.rutgers.edu Qwest Solutions
More information about the Gcc
mailing list