Re: How to eliminate redundant constant move instructions

mac <acolvin@efunct.com>
Thu, 3 Nov 2011 02:20:40 +0000 (UTC)

          From comp.compilers

Related articles
[4 earlier articles]
Re: How to eliminate redundant constant move instructions can.finner@gmail.com (amker) (2011-11-01)
Re: How to eliminate redundant constant move instructions can.finner@gmail.com (amker) (2011-11-01)
Re: How to eliminate redundant constant move instructions can.finner@gmail.com (amker) (2011-11-01)
Re: How to eliminate redundant constant move instructions amker.cheng@gmail.com (amker) (2011-11-01)
Re: How to eliminate redundant constant move instructions amker.cheng@gmail.com (amker) (2011-11-01)
Re: How to eliminate redundant constant move instructions gneuner2@comcast.net (George Neuner) (2011-11-02)
Re: How to eliminate redundant constant move instructions acolvin@efunct.com (mac) (2011-11-03)
Re: How to eliminate redundant constant move instructions kaz@kylheku.com (Kaz Kylheku) (2011-11-03)
Re: How to eliminate redundant constant move instructions gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-11-03)
Re: How to eliminate redundant constant move instructions gneuner2@comcast.net (George Neuner) (2011-11-04)
Re: How to eliminate redundant constant move instructions gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-11-04)
Re: How to eliminate redundant constant move instructions gneuner2@comcast.net (George Neuner) (2011-11-04)
Re: How to eliminate redundant constant move instructions amker.cheng@gmail.com (amker) (2011-11-07)
[2 later articles]
| List of all articles for this month |

From: mac <acolvin@efunct.com>
Newsgroups: comp.compilers
Date: Thu, 3 Nov 2011 02:20:40 +0000 (UTC)
Organization: A noiseless patient Spider
References: 11-11-002
Keywords: optimize

>> I found following intermediate codes are generated in gcc
>>
>> rx <- 0
>> ...
>> use rx
>> ...
>> ry <- 0
>> use ry
>> ...


This may be "rematerialization", which probably has other names.


Sometimes it's better to re-compute a common value than to tie up a
register. This may well be true for a constant 0 if there are few registers
(x86-32).



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.