]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Skip epilogue loops for dbgcnt check [PR96451]
authorKewen Lin <linkw@linux.ibm.com>
Wed, 5 Aug 2020 07:50:49 +0000 (02:50 -0500)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 18:07:42 +0000 (15:07 -0300)
commita092945e689317a182c7d2f4c4529376dbb1e500
tree3d8f644d7868a016bd0a2f547da4ad03019b70eb
parent75564eba0ffe827d48c6377c862f22f71782c2b4
vect: Skip epilogue loops for dbgcnt check [PR96451]

As the PR shows, commit r11-2453 exposed one issue that vectorizer
wants to vectorize the epilogue loop and leaves the if-cvt body there,
but later dbgcnt check disables it, the left scalar mask_store
statement causes ICE.

As Richard pointed out in that PR, the dbgcnt is to count original
scalar loops, so this fix is to make it skip the epilogue loops.

gcc/ChangeLog:

* tree-vectorizer.c (try_vectorize_loop_1): Skip the epilogue loops
for dbgcnt check.
gcc/tree-vectorizer.c