]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/95717 - fix SSA update for vectorizer epilogue
authorRichard Biener <rguenther@suse.de>
Wed, 17 Jun 2020 12:57:59 +0000 (14:57 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 24 Jun 2020 07:01:52 +0000 (09:01 +0200)
commitf3a27a610b0eb9a7ea76f61b4fecf7e66e86a3e1
tree002d712ee5a855b5ae137bd8e659da3b2b3f6f8b
parent01c36eefc67375144e5e6682a005b71ee2cf544b
tree-optimization/95717 - fix SSA update for vectorizer epilogue

This fixes yet another issue with the custom SSA updating in the
vectorizer when we copy from the non-if-converted loop.  We must
not mess with current defs before we updated the BB copies.

2020-06-17  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95717
* tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
Move BB SSA updating before exit/latch PHI current def copying.

* g++.dg/torture/pr95717.C: New testcase.

(cherry picked from commit d0909f5858ad81e6d8b73fa6193be19cb5e6ed7b)
gcc/testsuite/g++.dg/torture/pr95717.C [new file with mode: 0644]
gcc/tree-vect-loop-manip.c