This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Missed optimizations: Constant propagation / algebraic simplification re-run after after reload.?


> 
> Hello,
> 
> when working on the AVR target I stepped over the follwoing issue (IMO not 
> urgent but still bearing quite some potential of improvement):
> 
> When implementing "lowering" of SImode and HImode expressions to QImode 
> sequences by splitters after reload, quite a number of new optimization 
> opportunities show up that presently are not realized. These would probably 
> require that some kind of constant propagation and algebraic simplification 
> would be re-run *after* reload. 
> A typical case are mixed-mode expressions like in the function
> 
> uint16_t 
> dummy (uint8_t y, uint32_t x)
> {
>   return x & y; 
> }
You should expand this at expand time instead as there are enough optimizations
before expand time to get to it optimized.
-- pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]