http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50204
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-08-29 03:00:48 UTC --- Created attachment 25124 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25124 Patch which was tested on x86_64 without any regressions Note I am going to add this patch here as the copyright assignment for Cavium is not completed yet (though it is in the process of clearing up). This implements what is mentioned in comment #1 and was tested on x86_64-linux-gnu with no regressions. I don't know what the compile time slow down that happens yet and have not added any testcases but it works on the testcase attached to the bug. I also have not checked what the performance increase on SPEC would be.