Re: [PATCH] Optimize identical permutation in my last r13-3212-gb88adba751da63

2022-10-13 Thread Richard Biener via Gcc-patches
On Thu, Oct 13, 2022 at 5:15 AM Liwei Xu wrote: > > Add extra index check when merging VEC_CST, this handles the case when > exactly op1 needs to be return. > > This fixes: > FAIL: gcc.dg/tree-ssa/forwprop-19.c scan-tree-dump-not forwprop1 > "VEC_PERM_EXPR" > > gcc/ChangeLog: > >

[PATCH] Optimize identical permutation in my last r13-3212-gb88adba751da63

2022-10-12 Thread Liwei Xu via Gcc-patches
Add extra index check when merging VEC_CST, this handles the case when exactly op1 needs to be return. This fixes: FAIL: gcc.dg/tree-ssa/forwprop-19.c scan-tree-dump-not forwprop1 "VEC_PERM_EXPR" gcc/ChangeLog: PR target/107220 * match.pd: Check the index of VEC_CST and