diff options
author | Richard Biener <rguenther@suse.de> | 2023-07-17 09:20:33 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-07-17 10:19:33 +0200 |
commit | 3228e5c078ed2b505e4ad238b09c1817b38f9cfb (patch) | |
tree | 85f20121bed5c89b3d61164a4e56362e201d3a17 /gcc/fortran | |
parent | 53cf0c583b0d80f9db95edfde5778b11c572559f (diff) | |
download | gcc-3228e5c078ed2b505e4ad238b09c1817b38f9cfb.zip gcc-3228e5c078ed2b505e4ad238b09c1817b38f9cfb.tar.gz gcc-3228e5c078ed2b505e4ad238b09c1817b38f9cfb.tar.bz2 |
tree-optimization/110669 - bogus matching of loop bitop
The matching code lacked a check that we end up with a PHI node
in the loop header. This caused us to match a random PHI argument
now catched by the extra PHI_ARG_DEF_FROM_EDGE checking.
PR tree-optimization/110669
* tree-scalar-evolution.cc (analyze_and_compute_bitop_with_inv_effect):
Check we matched a header PHI.
* gcc.dg/torture/pr110669.c: New testcase.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions