[Bug rtl-optimization/19680] sub-optimial register allocation with sse

rth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 30 18:04:00 GMT 2005


------- Additional Comments From rth at gcc dot gnu dot org  2005-01-30 18:04 -------
Ok, I see what Intel is doing.  It's computing an index by 16 by doing

  addl %ecx,%ecx
  movl (%ebx, %ecx, 8), %eax

instead of

  sall $4, %ecx
  movl (%ebx, %ecx), %eax

which, considering the suckitude of the P4 shifter, is a win.  It should
not be a win for any other cpu.

-- 


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



More information about the Gcc-bugs mailing list