Re: [PATCH] simplify-rtx: Push sign/zero-extension inside vec_duplicate

2021-07-22 Thread Richard Sandiford via Gcc-patches
Jonathan Wright writes: > Hi, > > As a general principle, vec_duplicate should be as close to the root > of an expression as possible. Where unary operations have > vec_duplicate as an argument, these operations should be pushed > inside the vec_duplicate. > > This patch modifies unary operation s

[PATCH] simplify-rtx: Push sign/zero-extension inside vec_duplicate

2021-07-20 Thread Jonathan Wright via Gcc-patches
Hi, As a general principle, vec_duplicate should be as close to the root of an expression as possible. Where unary operations have vec_duplicate as an argument, these operations should be pushed inside the vec_duplicate. This patch modifies unary operation simplification to push sign/zero-extensi