[no subject]

2023-10-25 Thread wolf king via Gcc
Hi, please I just want to ask how to get the caribien nationality as a syrian man and his family and the datiels about it and thanks for your help

Re: Question on replacing .MASK_STORE with ternary expressions

2023-10-25 Thread Hanke Zhang via Gcc
Hi RIchard: Sorry about the previous mail. I made a mistake that I forgot the MEM_REF requires two parameters. After changing to the code here, everything is fine. tree deref = build1 (MEM_REF , TREE_TYPE (deref_ssa), addr, build_int_cst (TREE_TYPE (addr), 0)); // ... tree indirect_ref = build1

Re: Question on replacing .MASK_STORE with ternary expressions

2023-10-25 Thread Hanke Zhang via Gcc
Hi Richard: I think I need to get the value that 'addr' points to, is MEM_REF really right? And I try to replace INDIRECT_REF with MEM_REF like this: tree deref = build1 (MEM_REF , TREE_TYPE (deref_ssa), addr); // ... tree indirect_ref = build1 (MEM_REF , TREE_TYPE (deref_ssa), addr); And the e

Re: Question on replacing .MASK_STORE with ternary expressions

2023-10-25 Thread Richard Biener via Gcc
> Am 25.10.2023 um 17:25 schrieb Hanke Zhang via Gcc : > > Hi, I got a gimple relative question. > > I'm trying to replace the .MASK_STORE with a ternary expression in > pass_ifcvt like below: > > .MASK_STORE(addr, align, mask, value) => *addr = mask ? value : *addr; > > But when I do this,

Question on replacing .MASK_STORE with ternary expressions

2023-10-25 Thread Hanke Zhang via Gcc
Hi, I got a gimple relative question. I'm trying to replace the .MASK_STORE with a ternary expression in pass_ifcvt like below: .MASK_STORE(addr, align, mask, value) => *addr = mask ? value : *addr; But when I do this, I'm stucked. The addr here is a SSA_NAME of course. When I try to get the val