Re: [PATCH PR94274] fold phi whose incoming args are defined from binary

2020-11-23 Thread Jeff Law via Gcc-patches
gt; witnessed. > > Any suggestion? > > Thanks, > Haijian Zhang > > pr94274-v1.diff > > From 1f0f09ef3170569ef15791cf3e70de781a9a4cb0 Mon Sep 17 00:00:00 2001 > From: Haijian Zhang > Date: Thu, 11 Jun 2020 14:56:44 +0800 > Subject: [PATCH] fold phi whose incoming

Re: [PATCH PR94274] fold phi whose incoming args are defined from binary

2020-06-15 Thread Richard Biener
On Thu, 11 Jun 2020, Zhanghaijian (A) wrote: > Hi, > > This is a experimental fix for pr94274. For if/else structure, when the > expressions is binary operation and have a common subexpression, and the > opcode is the same, we can fold the merging phi node in > tree_ssa_phiopt_worker

[PATCH PR94274] fold phi whose incoming args are defined from binary

2020-06-11 Thread Zhanghaijian (A)
Hi, This is a experimental fix for pr94274. For if/else structure, when the expressions is binary operation and have a common subexpression, and the opcode is the same, we can fold the merging phi node in tree_ssa_phiopt_worker (ssa-phiopt). It can be optimized to do csel first and then do