On Thu, Feb 05, 2009 at 12:46:01PM -0800, Joe Buck wrote: > On Thu, Feb 05, 2009 at 12:34:14PM -0800, Jean Christophe Beyler wrote: > > I'm currently working on removing the constant folding and constant > > propagation because, on the architecture I'm working on, it is highly > > costly to move a constant into a register if the number is big (we can > > say over 16 bits). > > But in practice most constants that cprop deals with are values like > -1, 0, 1, or 2. Wouldn't it be better to be able to constrain cprop > based on the values of the constants, than to eliminate it altogether?
I shouldn't have said "most", but small constants are common.