aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-data-refs.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-10-25 09:33:15 +0200
committerRichard Biener <rguenther@suse.de>2021-10-25 10:28:00 +0200
commitaa15952d646fd5dd569fce287b719a737ae66e4f (patch)
treef0b2f3add7c2e9297845e5b19a1dd971f4211791 /gcc/tree-vect-data-refs.c
parent7c20a9b738a2257bed4e2b0593275336d1e2047a (diff)
downloadgcc-aa15952d646fd5dd569fce287b719a737ae66e4f.zip
gcc-aa15952d646fd5dd569fce287b719a737ae66e4f.tar.gz
gcc-aa15952d646fd5dd569fce287b719a737ae66e4f.tar.bz2
tree-optimization/102920 - fix PHI VN with undefined args
This fixes a latent issue exposed by now allowing VN_TOP in PHI arguments. We may only use optimistic equality when merging values on different edges, not when merging values on the same edge - in particular we may not choose the undef value on any edge when there's a not undef value as well. 2021-10-25 Richard Biener <rguenther@suse.de> PR tree-optimization/102920 * tree-ssa-sccvn.h (expressions_equal_p): Add argument controlling VN_TOP matching behavior. * tree-ssa-sccvn.c (expressions_equal_p): Likewise. (vn_phi_eq): Do not optimistically match VN_TOP. * gcc.dg/torture/pr102920.c: New testcase.
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
0 files changed, 0 insertions, 0 deletions