Re: [PATCH v5 1/4] Match: Add interface match_cond_with_binary_phi for true/false arg

2024-09-18 Thread Richard Biener
On Thu, Sep 19, 2024 at 6:11 AM wrote: > > From: Pan Li > > When matching the cond with 2 args phi node, we need to figure out > which arg of phi node comes from the true edge of cond block, as > well as the false edge. This patch would like to add interface > to perform the action and return th

[PATCH v5 1/4] Match: Add interface match_cond_with_binary_phi for true/false arg

2024-09-18 Thread pan2 . li
From: Pan Li When matching the cond with 2 args phi node, we need to figure out which arg of phi node comes from the true edge of cond block, as well as the false edge. This patch would like to add interface to perform the action and return the true and false arg in TREE type. The below test su