home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,198 of 2,753   
   ahighamster@gmail.com to shrey   
   Re: PRE and CISC   
   18 Jan 08 06:41:56   
   
   On Jan 18, 5:22 am, shrey  wrote:   
   > Two questions if somebody can help me find answers:   
   > 1. Are there any PRE algorithms that are aware of such addressing   
   > modes ?   
      
   In practice you have to use huristics to decide when any optimization   
   is worthwhile.  In the case of PRE you run the first half of the   
   algorithm to identify the partially redundant expressions then only do   
   the transformation if the expressions are more compilcated than the   
   addressing modes supported on your machine.   
      
   > 2. if not, how else can the subsequent passes recover so that they can   
   > use these addressing modes?   
      
   One example is rematerialization, which replaces register spill code   
   with code to recompute the value at its use.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca