Improve i386 add
Andreas Jaeger
aj@suse.de
Wed Mar 26 12:43:00 GMT 2003
Jan Hubicka <jh@suse.cz> writes:
>> > On Tue, Mar 25, 2003 at 11:37:17PM +0100, Jan Hubicka wrote:
>> > > * i386.md: New splitters to canonicalize order of arguments for AND.
AND or ADD?
>> >
>> > I think this is a mistake. The bug is elsewhere.
>>
>> Who should do that?
>> What happens in my testcase is that originally the add has 3 different
>> pseudos as arguments. regmove fails to convert it into 2 address
>> because it thinks it is not possible in it's simplistics analysis.
>> Register allocator allocates 2 operands to same register by a luck
>> and reload sees he has nothing to do because instruction already match.
>
> Note that ADD is special by having the lea alternative so it is not
> clean 2 address.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Gcc-patches
mailing list