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: An issue for the SC: horrible documentation quality of GCC


> 
> No, it's a dead machine.  I was just giving that as an example of the sort
> of problems you can get into by blindly replacing registers by constants.
> 

Actually, there's a case in reload_cse where exactly the opposite is done: 
a constant is blindly replaced by a register with no regard to the cost.  
On ARM this can be detrimental when the constant is a shift specifier, so

	mov	r0, #5
	mov	r1, r2, lsr r0

is at least a cycle slower than

	mov	r0, #5
	mov	r1, r2, lsr #5

R.


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