Fix PR94443 with gsi_insert_seq_before [PR94443]
authorKewen Lin <linkw@linux.ibm.com>
Fri, 3 Apr 2020 07:10:08 +0000 (02:10 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Fri, 3 Apr 2020 08:07:46 +0000 (03:07 -0500)
commit4441ecedc3d74114683761901075085651928c52
tree449a8666b1f7b8ac0bf188b7b107c4c3b88c58e8
parent55a7380213a5c16120d5c674fb42b38a3d796b57
Fix PR94443 with gsi_insert_seq_before [PR94443]

This patch is to fix the stupid mistake by using
gsi_insert_seq_before instead of gsi_insert_before.

BTW, the regression testing on one x86_64 machine from CFarm is
unable to reveal it (I guess due to native arch sandybridge?), so I
specified additional option -march=znver2 and verified the coverage.

Bootstrapped/regtested on powerpc64le-linux-gnu (P9) and
x86_64-pc-linux-gnu, also verified the fail cases in related PRs.

2020-04-03  Kewen Lin  <linkw@gcc.gnu.org>

gcc/
    PR tree-optimization/94443
    * tree-vect-loop.c (vectorizable_live_operation): Use
    gsi_insert_seq_before to replace gsi_insert_before.

gcc/testsuite/
    PR tree-optimization/94443
    * gcc.dg/vect/pr94443.c: New test.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr94443.c [new file with mode: 0644]
gcc/tree-vect-loop.c