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 |
Posted-Date: | 02 Nov 2011 22:45:01 EDT |
>> 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).
Return to the
comp.compilers page.
Search the
comp.compilers archives again.