Improve offset combination during LRA virtual register elimination?

2015-04-22 Thread Jiong Wang
During investigate PR62173, another issue I found is gcc is doing bad offset combination during LRA virtual register elimination. For example, suppose we access one element from a local array A[i], normally we get: sequence1 = rA = sfp + rB rC = MEM[rA + off0] rB contains index "i",

Re: Frame pointer optimization issues

2014-09-11 Thread Jiong Wang
On 20/08/14 16:22, Wilco Dijkstra wrote: Hi, Various targets implement -momit-leaf-frame-pointer to avoid using a frame pointer in leaf functions. Currently the GCC mid-end does not provide a way of doing this, so targets have resorted to hacks. Typically this involves forcing flag_omit_frame