]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/111950 - vectorizer loop copying
authorRichard Biener <rguenther@suse.de>
Fri, 3 Nov 2023 13:24:10 +0000 (14:24 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 6 Nov 2023 13:12:46 +0000 (14:12 +0100)
commitbf72d50d16f0c1fa8102ca2544d2a05772f8c273
treeb89ee01e74f269bf2de28c89b8006fabf422c496
parent3cc9ad41db87fb85b13a56bff1f930c258542a70
tree-optimization/111950 - vectorizer loop copying

The following simplifies LC-PHI arg population during epilog peeling,
thereby fixing the testcase in this PR.

PR tree-optimization/111950
* tree-vect-loop-manip.cc (slpeel_duplicate_current_defs_from_edges):
Remove.
(find_guard_arg): Likewise.
(slpeel_update_phi_nodes_for_guard2): Likewise.
(slpeel_tree_duplicate_loop_to_edge_cfg): Remove calls to
slpeel_duplicate_current_defs_from_edges, do not elide
LC-PHIs for invariant values.
(vect_do_peeling): Materialize PHI arguments for the edge
around the epilog from the PHI defs of the main loop exit.

* gcc.dg/torture/pr111950.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr111950.c [new file with mode: 0644]
gcc/tree-vect-loop-manip.cc
This page took 0.068429 seconds and 6 git commands to generate.