Re: [PATCH GCC]refactor process of copy and cast in slsr

2019-05-15 Thread Richard Biener
On Wed, May 15, 2019 at 7:48 AM bin.cheng wrote: > > Hi, > I noticed that slsr_process_copy and slsr_process_cast are almost identical > and called only once. This patch refactor the two functions into one. > For copies, it also passes lhs' type to creation of new cand assuming that > lhs, rhs an

[PATCH GCC]refactor process of copy and cast in slsr

2019-05-14 Thread bin.cheng
Hi, I noticed that slsr_process_copy and slsr_process_cast are almost identical and called only once. This patch refactor the two functions into one. For copies, it also passes lhs' type to creation of new cand assuming that lhs, rhs and base_cand have the same/compatible type. I will keep an eye