Re: [EVRP] Fold stmts with vrp_fold_stmt

2016-10-05 Thread Richard Biener
On Wed, 5 Oct 2016, kugan wrote: > Hi Richard, > Thanks for the review. > > On 04/10/16 19:56, Richard Biener wrote: > > On Tue, 4 Oct 2016, kugan wrote: > > > > > Hi, > > > > > > This patch improves Early VRP by folding stmts using vrp_fold_stmt as it > > > is > > > done in ssa_propagate for

Re: [EVRP] Fold stmts with vrp_fold_stmt

2016-10-04 Thread kugan
Hi Richard, Thanks for the review. On 04/10/16 19:56, Richard Biener wrote: On Tue, 4 Oct 2016, kugan wrote: Hi, This patch improves Early VRP by folding stmts using vrp_fold_stmt as it is done in ssa_propagate for VRP. Why? I thought it would be good for early vrp to simplify stmts

Re: [EVRP] Fold stmts with vrp_fold_stmt

2016-10-04 Thread Richard Biener
On Tue, 4 Oct 2016, kugan wrote: > Hi, > > This patch improves Early VRP by folding stmts using vrp_fold_stmt as it is > done in ssa_propagate for VRP. Why? I'd like us to move away from the fold_stmt callback of substitute-and-fold (I have actually started some work towards that). > I have

[EVRP] Fold stmts with vrp_fold_stmt

2016-10-03 Thread kugan
Hi, This patch improves Early VRP by folding stmts using vrp_fold_stmt as it is done in ssa_propagate for VRP. I have also changed EVRP to handle POINTER_TYPE_P. I will send follow up patches to use this in IPA-VRP. Bootstrapped and regression testd on x86_64-linux-gnu with no new