Re: [PATCH] Make assert in gimple_phi_arg more strict

2017-07-20 Thread Tom de Vries
On 07/20/2017 12:05 PM, Richard Biener wrote: I've used the following to only init the PHI node up to nargs, not capacity (but still consistently zero things). Currently bootstrapping/testing on x86_64-unknown-linux-gnu (plus the adjusted assert of course). I think it's slightly cleaner than ad

Re: [PATCH] Make assert in gimple_phi_arg more strict

2017-07-20 Thread Richard Biener
On Thu, 20 Jul 2017, Tom de Vries wrote: > Hi, > > this patch checks that gimple_phi_arg accesses args only in the inclusive > 0..(nargs-1) region. > > There are a couple of functions that manipulate args in the inclusive > nargs..(capacity-1) region, so these have been updated to temporarily in

[PATCH] Make assert in gimple_phi_arg more strict

2017-07-20 Thread Tom de Vries
Hi, this patch checks that gimple_phi_arg accesses args only in the inclusive 0..(nargs-1) region. There are a couple of functions that manipulate args in the inclusive nargs..(capacity-1) region, so these have been updated to temporarily increase nargs to capacity while doing the manipulati