On 10/20/2017 02:56 AM, Jakub Jelinek wrote: > On Thu, Oct 19, 2017 at 08:03:45PM -0600, Sandra Loosemore wrote: >> A harder problem is that doing the high/lo_sum splitting in expand >> inhibits subsequent optimizations. One such problem arises when you >> have accesses to multiple fields in a static structure object. Expand >> sees this as many (symbol + offset) expressions involving the same >> symbol with different constant offsets. What we should be doing in >> that case is CSE'ing the symbol address computation rather than >> splitting every such expression individually. > > Do you have the needed relocations for that though? We certainly did on the PA.
jeff