diff options
author | Richard Biener <rguenther@suse.de> | 2024-02-26 11:25:50 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-02-26 15:20:54 +0100 |
commit | 8293df8019adfffae3384cb6fb9cb6f496fe8608 (patch) | |
tree | 339e9d6308925da7f4dab83f5f4dad4753581550 /gcc/varasm.cc | |
parent | 146f16c97f632be88d6ed543d24887477682af6b (diff) | |
download | gcc-8293df8019adfffae3384cb6fb9cb6f496fe8608.zip gcc-8293df8019adfffae3384cb6fb9cb6f496fe8608.tar.gz gcc-8293df8019adfffae3384cb6fb9cb6f496fe8608.tar.bz2 |
tree-optimization/114068 - missed virtual LC PHI after vect peeling
When we choose the IV exit to be one leading to no virtual use we
fail to have a virtual LC PHI even though we need it for the epilog
entry. The following makes sure to create it so that later updating
works.
PR tree-optimization/114068
* tree-vect-loop-manip.cc (get_live_virtual_operand_on_edge):
New function.
(slpeel_tree_duplicate_loop_to_edge_cfg): Add a virtual LC PHI
on the main exit if needed. Remove band-aid for the case
it was missing.
* gcc.dg/vect/vect-early-break_118-pr114068.c: New testcase.
* gcc.dg/vect/vect-early-break_119-pr114068.c: Likewise.
Diffstat (limited to 'gcc/varasm.cc')
0 files changed, 0 insertions, 0 deletions