[Bug target/27212] vec_cmplt followed by a vec_all_ge, gives two vcmpgtuh instructions

ben at shellandslate dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 19 20:20:00 GMT 2006



------- Comment #3 from ben at shellandslate dot com  2006-04-19 20:20 -------
It's true that the instructions are not identical (the first sets the condition
register, the second doesn't.) But the second still duplicates work already
performed, and should be removed. (The two instructions are sometimes generated
in reverse order from similar source code, but the same principle applies.)
I've verified with assembly that removing the second instruction has no effect
on the program behavior, except to make it faster. :)


-- 


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



More information about the Gcc-bugs mailing list