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]

Re: 2.95, x86: severe performance problems with short arithmetic



  > Does this include something like this?
  > 
  > 	movzbw %dl, %ax
  > 	addl %eax, %esi
  > 
  > It certainly sounds like it, and would explain why such a tiny
  > difference turns into a 2x performance loss.
I believe so, yes.  However, if the destination of such an insn is not inside
a strict_low_part, we can probably turn the first instruction into a
movzbl.  That would avoid the partial register stall between the movzb/add,
but could potentially introduce a stall with an earlier insn.

jeff


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