Re: [PATCH] Restore INDIRECT_REF asm operand heuristic with MEM_REF

2022-03-09 Thread Jakub Jelinek via Gcc-patches
On Wed, Mar 09, 2022 at 03:21:53PM +0100, Richard Biener wrote: > As noticed we are looking for INDIRECT_REF with allows_mem to avoid > a copy since then we're sure the operand is in memory (assuming > *& is folded). But INDIRECT_REFs are no longer a thing, the following > replaces the check with

[PATCH] Restore INDIRECT_REF asm operand heuristic with MEM_REF

2022-03-09 Thread Richard Biener via Gcc-patches
As noticed we are looking for INDIRECT_REF with allows_mem to avoid a copy since then we're sure the operand is in memory (assuming *& is folded). But INDIRECT_REFs are no longer a thing, the following replaces the check with a check for a MEM_REF with a non-ADDR_EXPR operand. This should fix the