Refactor exit PHI handling in vectorizer epilogue peeling
commit02e683894942da1620c07bd7e3e8b1d5950d91aa
authorRichard Biener <rguenther@suse.de>
Mon, 22 Jan 2024 08:17:35 +0000 (22 09:17 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 23 Jan 2024 12:08:12 +0000 (23 13:08 +0100)
tree2678eaf206976186eb961091d7d75c0dbbade8a4
parent659a5a908edd84894c2aa7f6f89468217d6894ca
Refactor exit PHI handling in vectorizer epilogue peeling

This refactors the handling of PHIs inbetween the main and the
epilogue loop.  Instead of trying to handle the multiple exit
and original single exit case together the following separates
these cases resulting in much easier to understand code.

* tree-vect-loop-manip.cc (slpeel_tree_duplicate_loop_to_edge_cfg):
Separate single and multi-exit case when creating PHIs between
the main and epilogue.
gcc/tree-vect-loop-manip.cc