This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 2.95/3.x regression in the compilation of computed gotos?


duchier@ps.uni-sb.de wrote:

2.95:

	addl $4,%eax
        jmp *(%eax)

3.3.2:

	addl $4,%ecx
        movl (%ecx),%edx
        jmp *%edx

Isn't this a regression?

In such a case, it is helpful to know why you think this is a regression. It is not clear at all to me that the 2.95 code is better. Either attach an analysis or a timing test result. On these kinds of machines, you can't rely on obvious common sense to figure out what sequence of code is better!



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]