Re: [Patch] PR67351 Implement << N & >> N optimizers

2015-09-03 Thread Richard Biener
On Thu, Sep 3, 2015 at 9:29 AM, Hurugalawadi, Naveen wrote: > Hi, > > Thanks for all the review and comments. > >>> replace the precision test with wi::ltu_p (@1, TYPE_PRECISION (type) >>> use element_precision instead of TYPE_PRECISION > > Please find attached the modified patch as per review com

Re: [Patch] PR67351 Implement << N & >> N optimizers

2015-09-03 Thread Uros Bizjak
On Thu, Sep 3, 2015 at 9:29 AM, Hurugalawadi, Naveen wrote: > Hi, > > Thanks for all the review and comments. > >>> replace the precision test with wi::ltu_p (@1, TYPE_PRECISION (type) >>> use element_precision instead of TYPE_PRECISION > > Please find attached the modified patch as per review com

Re: [Patch] PR67351 Implement << N & >> N optimizers

2015-09-03 Thread Hurugalawadi, Naveen
Hi, Thanks for all the review and comments. >> replace the precision test with wi::ltu_p (@1, TYPE_PRECISION (type) >> use element_precision instead of TYPE_PRECISION Please find attached the modified patch as per review comments. Please review the same and let me know if the patch is okay? Re

Re: [Patch] PR67351 Implement << N & >> N optimizers

2015-09-02 Thread Marc Glisse
+/* Optimize (x >> c) << c into x & (-1

Re: [Patch] PR67351 Implement << N & >> N optimizers

2015-09-01 Thread Richard Biener
On Tue, Sep 1, 2015 at 10:57 AM, Hurugalawadi, Naveen wrote: > Hi, > > Please find attached the patch "pr67351.patch" that implements the > pattern << N & >> N optimizers. + (bit_and @0 (lshift { build_minus_one_cst (type); } @1 please use (bit_and @0 { wide_int_to_tree (type, wi::lshif

[Patch] PR67351 Implement << N & >> N optimizers

2015-09-01 Thread Hurugalawadi, Naveen
Hi, Please find attached the patch "pr67351.patch" that implements the pattern << N & >> N optimizers. Please review and let me know if its okay. Regression tested on AARH64 and x86_64. Thanks, Naveen 2015-09-01 Naveen H.S gcc/ChangeLog: PR middle-end/67351 *