Re: [PATCH 1/2] Add gimple_truth_valued_p to match.pd and use it

2021-09-18 Thread Jeff Law via Gcc-patches
On 8/13/2021 6:19 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski While working on some more boolean optimizations, I noticed that there are places which does SSA_NAME@0 and then look at then either use get_nonzero_bits or ssa_name_has_boolean_range to see if the ssa name had a boo

Re: [PATCH 1/2] Add gimple_truth_valued_p to match.pd and use it

2021-08-15 Thread Richard Biener via Gcc-patches
On Sat, Aug 14, 2021 at 2:20 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > While working on some more boolean optimizations, I noticed > that there are places which does SSA_NAME@0 and then look > at then either use get_nonzero_bits or ssa_name_has_boolean_range > to see if the