[Bug tree-optimization/18754] unrolling happens too late/SRA does not happen late enough

rguenth at tat dot physik dot uni-tuebingen dot de gcc-bugzilla@gcc.gnu.org
Thu Dec 16 17:09:00 GMT 2004


------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de  2004-12-16 17:08 -------
The attached patch makes us for -O3 -funroll-loops -ffast-math produce in .vars

float foobar() ()
{
<bb 0>:
  return a.array[3] * b.array[3] + a.array[2] * b.array[2] + a.array[0] *
b.array[0] + a.array[1] * b.array[1];

}

though the assembly is as good as before.

-- 


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



More information about the Gcc-bugs mailing list