Re: [PATCH] Adjust tree-ssa-strlen.c for irange API.

2020-08-04 Thread Martin Sebor via Gcc-patches
On 8/4/20 3:23 PM, Aldy Hernandez wrote: On 8/4/20 9:34 PM, Martin Sebor wrote: On 8/4/20 5:33 AM, Aldy Hernandez via Gcc-patches wrote: This patch adapts the strlen pass to use the irange API. I wasn't able to remove the one annoying use of VR_ANTI_RANGE, because I'm not sure what to do.  P

Re: [PATCH] Adjust tree-ssa-strlen.c for irange API.

2020-08-04 Thread Aldy Hernandez via Gcc-patches
On 8/4/20 11:23 PM, Aldy Hernandez wrote: On 8/4/20 9:34 PM, Martin Sebor wrote: On 8/4/20 5:33 AM, Aldy Hernandez via Gcc-patches wrote: This patch adapts the strlen pass to use the irange API. I wasn't able to remove the one annoying use of VR_ANTI_RANGE, because I'm not sure what to do

Re: [PATCH] Adjust tree-ssa-strlen.c for irange API.

2020-08-04 Thread Aldy Hernandez via Gcc-patches
On 8/4/20 9:34 PM, Martin Sebor wrote: On 8/4/20 5:33 AM, Aldy Hernandez via Gcc-patches wrote: This patch adapts the strlen pass to use the irange API. I wasn't able to remove the one annoying use of VR_ANTI_RANGE, because I'm not sure what to do.  Perhaps Martin can shed some light.  The c

Re: [PATCH] Adjust tree-ssa-strlen.c for irange API.

2020-08-04 Thread Martin Sebor via Gcc-patches
On 8/4/20 5:33 AM, Aldy Hernandez via Gcc-patches wrote: This patch adapts the strlen pass to use the irange API. I wasn't able to remove the one annoying use of VR_ANTI_RANGE, because I'm not sure what to do. Perhaps Martin can shed some light. The current code has: else if (rng == VR_ANT