On 11/12/23 07:01, Lehua Ding wrote:
Thanks for the specint performance data. I'll do my best to get the
compile time and memory issues fixed. I'm very curious to know if the
way used to solve the subreg coalesce problem makes sense to you?
If it works, it is ok for me. There is always a room for any
optimization even if it decreases compilation speed considerably. We
just need to keep the same speed for optimization level <= 2. We can
put really expensive optimizations to -O3 or -Ofast.
Although the first thing I would try myself is to do subreg liveness
analysis only locally (inside BBs). The majority cases I saw to improve
subreg RA were local (inside a BB). For such approach, we probably
would have only minor compiler speed slowdown and could use the
optimization by default.