https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54089

--- Comment #62 from Alexander Klepikov <klepikov.alex+bugs at gmail dot com> 
---
> I'm a bit concerned about the increased compile time.  Have you observed
> anything (negative) in this regard?

My project is small and it compiles in under 1 second on both clean and patched
GCC. sh.exp test suite mean run time is 117s on clean and 119s on patched. I
did 1 warm-up run and then 3 main one-threaded runs for each task. I'm thinking
of something else.

> 
> Loop, hoist, constant propagation etc (+ all the good stuff) optimizations
> are done before insn combine / split1.  We could add a simple SH specific
> pass that goes over the RTL and does stuff to shifts before those other
> optimizations.

That's a good idea! 

> However, it might miss insn combine opportunities later on. 

Implementing features not supported by hardware will always be a tradeoff.

Reply via email to