[Bug optimization/14042] C++ abstraction penalty is high in simple cases

tjw at omnigroup dot com gcc-bugzilla@gcc.gnu.org
Sat Mar 6 04:00:00 GMT 2004


------- Additional Comments From tjw at omnigroup dot com  2004-03-06 04:00 -------
This still doesn't produce the same code as the C version.  I now get:

L11:
	vaddfp v0,v11,v13
	addi r2,r2,1
	vaddfp v1,v10,v12
	cmplw cr7,r2,r5
	vmaddfp v8,v0,v11,v13
	vmaddfp v6,v1,v10,v12
	vsubfp v9,v0,v13
	vsubfp v7,v1,v12
	vor v11,v8,v8
	vor v10,v6,v6
	vor v13,v9,v9
	vor v12,v7,v7
	blt+ cr7,L11


note the extra useless copies at the end of the loop.

If you'd like me to enter a new bug on this (since the title is now incorrect, I guess), just let me know.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |NEW


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



More information about the Gcc-bugs mailing list