Re: [PR86544] Fix Popcount detection generates different code on C and C++

2018-07-18 Thread Richard Biener
On Wed, Jul 18, 2018 at 4:19 AM Kugan Vivekanandarajah wrote: > > Attached patch fixes phi-opt not optimizing c++ testcase where we have > > if (b_4(D) == 0) instead of if (b_4(D) != 0) as shown in > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86544 > > Patch bootstrapped and regression tested on

[PR86544] Fix Popcount detection generates different code on C and C++

2018-07-17 Thread Kugan Vivekanandarajah
Attached patch fixes phi-opt not optimizing c++ testcase where we have if (b_4(D) == 0) instead of if (b_4(D) != 0) as shown in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86544 Patch bootstrapped and regression tested on x86_64-linux-gnu with no new regressions. Is this OK for trunk? Thanks,