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

2020-11-23 Thread Jeff Law via Gcc-patches
On 6/11/20 6:01 AM, 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 (ssa-phiopt

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 (ssa-phio

[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 binar