On 11/30/2016 11:11 PM, Jakub Jelinek wrote:
I run into the problem that while simplify_replace_rtx if it actually does copy_rtx (for y) or if it simplifies something through simplify_gen_{unary,binary,relational,ternary}, the used bits on the newly created rtxes are cleared, when we fall through into the fallback simplify_replace_fn_rtx handling, it calls shallow_copy_rtx which copies the set used bit and thus copy_rtx_if_shared copies it again.
Shouldn't the bit be cleared in shallow_copy_rtx then? Bernd