diff options
author | Richard Biener <rguenther@suse.de> | 2025-05-11 14:03:12 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2025-05-11 14:03:12 +0200 |
commit | 44cd55a1df897e3160cffeb10f96171bafc06400 (patch) | |
tree | 5d4c495755b05c9ee5c2e4b3f2e71c62171c3448 /gcc/c | |
parent | 47e830211d39b5efb14144bbdaf8f2d83ba8375e (diff) | |
download | gcc-44cd55a1df897e3160cffeb10f96171bafc06400.zip gcc-44cd55a1df897e3160cffeb10f96171bafc06400.tar.gz gcc-44cd55a1df897e3160cffeb10f96171bafc06400.tar.bz2 |
tree-optimization/120211 - constrain LOOP_VINFO_EARLY_BREAKS_LIVE_IVS more
The PR120089 fix added more PHIs to LOOP_VINFO_EARLY_BREAKS_LIVE_IVS
but not checking that we only add PHIs with a latch argument. The
following adds this missing check.
PR tree-optimization/120211
* tree-vect-stmts.cc (vect_stmt_relevant_p): Only add PHIs
from the loop header to LOOP_VINFO_EARLY_BREAKS_LIVE_IVS.
* gcc.dg/vect/vect-early-break_135-pr120211.c: New testcase.
* gcc.dg/torture/pr120211-1.c: Likewise.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions