[Bug target/11877] gcc should use xor trick with -Os

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 4 07:50:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-04 07:50 -------
What about expanding (set (mem:DI ...) (const_int 0)) at expand time, this will cause more 
opportunities to happen and then the discusion is up to other parts of the compiler.
It looks like an easy change to ix86_expand_move.
Also interesting is that this testcase:
void
foo (long *p)
{
  *p = 0;
  p[1] = 0;
}
Does not use the xor trick either.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11877



More information about the Gcc-bugs mailing list