Re: mov arguments are the same

2010-08-25 Thread Paulo J. Matos
On Tue, Aug 24, 2010 at 3:10 PM, Ian Lance Taylor wrote: > "Paulo J. Matos" writes: > > Moves between the same register are normally eliminated by a loop at the > end of reload().  Does your processor support memory-to-memory moves? Nope, not really. > I > don't think anything will explicitly e

Re: mov arguments are the same

2010-08-24 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > In a rule like > (set (match_operand 0 ...) > (match_operand 1 ...)) > > I sometimes have operand0 equal to operand1, as in > rtx_equal_p(operand[0], operand[1]) == 1. > This generates a move between the same location (same as a nop). > > Is there a reason for

mov arguments are the same

2010-08-24 Thread Paulo J. Matos
Hello, In a rule like (set (match_operand 0 ...) (match_operand 1 ...)) I sometimes have operand0 equal to operand1, as in rtx_equal_p(operand[0], operand[1]) == 1. This generates a move between the same location (same as a nop). Is there a reason for getting this and is it up to me to